Asynchronous read
The following example performs an async get
.
let policy = new Policy();let key = new Key("test", "myset", "mykey");let record = await client.get(key, policy)
A callback can be provided to handle results as an alternative to returning a promise.
let policy = new Policy();let key = new Key("test", "myset", "mykey");let record = await client.get(key, policy, (error, client) => { /* Add Client code here */ })