Function: createActivityPoller()
createActivityPoller<Defined in: async.ts:101 Wraps a client request function (e.g.O,I>(params): (input) =>Promise<O["activity"]>
client.createPrivateKeys) in a poller.
The default refresh interval is 500ms.
The returned poller will poll until the activity becomes COMPLETED.
If the activity becomes FAILED or REJECTED or is flagged as NEEDS_CONSENSUS, an error is thrown.
Type Parameters
O
O extends object
I
I extends object
Parameters
params
client
TurnkeyClient
refreshIntervalMs?
number
requestFn
(input) => Promise<O>
Returns
Function
Parameters
input
I
Returns
Promise<O["activity"]>