Skip to content

waitForPullStatus

waitForPullStatus(options): Promise<PullResponse>

Defined in: packages/synapse-core/src/sp.ts:1049

Wait for pull completion.

Repeatedly calls the pull endpoint until all pieces are complete or any piece fails. Since the endpoint is idempotent, this effectively polls for status updates.

ParameterTypeDescription
optionsOptionsTypewaitForPullStatus.OptionsType

Promise<PullResponse>

The final status when complete or failed. waitForPullStatus.ReturnType

Errors waitForPullStatus.ErrorType