Version: 0.13.0

util/timeout_promise

Index

Interfaces

Functions

Functions

sleep

sleep(ms: number): Promise‹void›

Defined in util/timeout_promise.ts:23

Parameters:

NameType
msnumber

Returns: Promise‹void›


timeoutPromise

timeoutPromise<T>(ms: number, promise: Promise‹T›): Promise‹T›

Defined in util/timeout_promise.ts:9

Type parameters:

T

Parameters:

NameType
msnumber
promisePromise‹T›

Returns: Promise‹T›