@chickenjdk/byteutils
Preparing search index...
common
wrapForPromiseKnown
Function wrapForPromiseKnown
wrapForPromiseKnown
<
IsAsync
extends
boolean
,
V
>
(
awaiter
:
MaybePromise
<
any
,
IsAsync
>
,
value
:
V
,
async
:
IsAsync
,
)
:
V
|
Promise
<
V
>
Wrap a value for the completion of a promise, or a non-promise based on the async param
Type Parameters
IsAsync
extends
boolean
V
Parameters
awaiter
:
MaybePromise
<
any
,
IsAsync
>
value
:
V
async
:
IsAsync
Returns
V
|
Promise
<
V
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@chickenjdk/byteutils
Loading...
Wrap a value for the completion of a promise, or a non-promise based on the async param