Skip to main content

Documentation Index

Fetch the complete documentation index at: https://turnkey-0e7c1f5b-bc-add-sdk-typedoc.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Function: withAsyncPolling()

withAsyncPolling<O, I>(params): (input) => Promise<O["activity"]>
Defined in: async.ts:13 Wraps a request to create a fetcher with built-in async polling support.

Type Parameters

O

O extends object

I

I extends object

Parameters

params

refreshIntervalMs?

number

request

(input) => Promise<O>

Returns

Function

Parameters

input

I

Returns

Promise<O["activity"]>

Deprecated

this function only works with TurnkeyApi. Use TurnkeyClient and createActivityPoller instead.