Skip to main content

delay

ParallelModel TypeScript SDK


Function: delay()

delay(ms, signal?): Promise<void>

Defined in: transport.ts:141

Waits for the specified duration, rejecting if the supplied signal is aborted.

Parameters​

ms​

number

Duration in milliseconds.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<void>

A promise that resolves after the delay.