Skip to content

pollStatus

function pollStatus(options): Promise<SPFetchResponse>;

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

Poll for fetch completion.

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

ParameterTypeDescription
optionsSPFetchPollOptionsThe poll options

Promise<SPFetchResponse>

The final status when complete or failed