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.
O
extends object
I
extends object
TurnkeyClient
number
input
) => Promise
<O
>
Function
I
Promise
<O
["activity"
]>