Skip to content

OptionsType

OptionsType = OptionsType & object

Defined in: packages/synapse-core/src/sp/pull-pieces.ts:152

Options for polling pull status.

optional onStatus?: (response) => void

Callback invoked on each poll with current status.

ParameterType
responseReturnType

void

optional pollInterval?: number

The poll interval in milliseconds. Defaults to RETRY_CONSTANTS.POLL_INTERVAL.

optional retryCount?: number

The number of retries. Defaults to 2.

optional retryDelay?: number

The delay with exponential backoff between retries in milliseconds. Defaults to RETRY_CONSTANTS.RETRY_DELAY.

optional timeout?: number

Total time in milliseconds to wait for the pull to finish. Defaults to RETRY_CONSTANTS.PULL_TIMEOUT (2 hours).