@hashgraph/solo
Preparing search index...
src/core/helpers
withTimeout
Function withTimeout
withTimeout
<
T
>
(
promise
:
Promise
<
T
>
,
duration
:
Duration
,
errorMessage
?:
string
,
)
:
Promise
<
T
>
Type Parameters
T
Parameters
promise
:
Promise
<
T
>
duration
:
Duration
errorMessage
:
string
= 'Timeout'
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@hashgraph/solo
Loading...