JS API Reference

Module: shared/utils/timeout

Table of contents

Functions

Functions

withTimeout

withTimeout<T>(promise, timeoutMs): Promise<T>

Type parameters

Name
T

Parameters

NameType
promisePromise<T>
timeoutMsnumber

Returns

Promise<T>

Defined in

src/shared/utils/timeout.ts:3