Skip to Content
API referencePulsar CoreSrcComponentsinitializePollingTracker()

@tuwaio/pulsar-core-monorepo


initializePollingTracker()

initializePollingTracker<R, T, TR>(params): Promise<void>

Defined in: packages/pulsar-core/src/utils/initializePollingTracker.ts:61 

Initializes a generic polling tracker that repeatedly calls a fetcher function to monitor the status of a transaction or any asynchronous task.

Type Parameters

R

R

The expected type of the successful API response.

T

T

The type of the transaction object.

TR

TR

The type of the tracker identifier.

Parameters

params

InitializePollingTracker<R, T, TR>

The configuration object for the tracker.

Returns

Promise<void>

A promise that resolves when the tracker is set up (note: polling happens asynchronously).

Last updated on