Skip to main content

Home > flowp > timers > timeout

timers.timeout variable

**reject** after timeout (in miliseconds)

By default, reject with Error('timeout'), but can pass in an optional rejected value

Signature:

timeout: (ms: number, err?: string | Error) => Promise<unknown>