createActivityPoller<
O
,I
>(params
): (input
) =>Promise
<O
["activity"
]>
Defined in: packages/http/dist/async.d.ts:27
Wraps a client request function (e.g. 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"
]>
createActivityPoller<
O
,I
>(params
): (input
) =>Promise
<O
["activity"
]>
Defined in: packages/http/dist/async.d.ts:27
Wraps a client request function (e.g. 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"
]>