fx-flow v0.7.0 / pipe/strict / delay
Function: delay()
delay(wait)
delay(
wait
):Promise
<void
>
Delay the value
by wait
time.
Parameters
• wait: number
Returns
Promise
<void
>
Example
typescript
console.log(await delay(1000, 'hello')) // print hello after 1s
Source
packages/core/src/pipe/strict/delay.ts:14
delay(wait, value)
delay<
A
>(wait
,value
):FixedPromise
<A
>
Type parameters
• A
Parameters
• wait: number
• value: A
Returns
FixedPromise
<A
>