Preparing search index...
The search index is not available
@zimtsui/coroutine-locks
@zimtsui/coroutine-locks
ManualPromise
Class ManualPromise<T>
Type Parameters
T
Hierarchy
ManualPromise
Implements
PromiseLike
<
T
>
Index
Constructors
constructor
Methods
catch
finally
reject
resolve
then
Constructors
constructor
new
Manual
Promise
<
T
>
(
)
:
ManualPromise
<
T
>
Type Parameters
T
Returns
ManualPromise
<
T
>
Methods
catch
catch
<
TResult2
>
(
onRejected
:
undefined
|
null
|
(
(
reason
:
any
)
=>
TResult2
|
PromiseLike
<
TResult2
>
)
)
:
Promise
<
T
|
TResult2
>
Type Parameters
TResult2
Parameters
onRejected:
undefined
|
null
|
(
(
reason
:
any
)
=>
TResult2
|
PromiseLike
<
TResult2
>
)
Returns
Promise
<
T
|
TResult2
>
finally
finally
(
onFinally
:
(
(
)
=>
void
)
)
:
Promise
<
T
>
Parameters
onFinally:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
Promise
<
T
>
reject
reject
(
reason
?:
any
)
:
void
Decorator
@boundMethod
Parameters
Optional
reason:
any
Returns
void
resolve
resolve
(
value
:
T
|
PromiseLike
<
T
>
)
:
void
Decorator
@boundMethod
Parameters
value:
T
|
PromiseLike
<
T
>
Returns
void
then
then
<
TResult1
,
TResult2
>
(
onFulfilled
:
undefined
|
null
|
(
(
value
:
T
)
=>
TResult1
|
PromiseLike
<
TResult1
>
)
, onRejected
?:
null
|
(
(
reason
:
any
)
=>
TResult2
|
PromiseLike
<
TResult2
>
)
)
:
Promise
<
TResult1
|
TResult2
>
Type Parameters
TResult1 =
T
TResult2 =
never
Parameters
onFulfilled:
undefined
|
null
|
(
(
value
:
T
)
=>
TResult1
|
PromiseLike
<
TResult1
>
)
Optional
onRejected:
null
|
(
(
reason
:
any
)
=>
TResult2
|
PromiseLike
<
TResult2
>
)
Returns
Promise
<
TResult1
|
TResult2
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
@zimtsui/coroutine-
locks
Manual
Promise
constructor
catch
finally
reject
resolve
then
Generated using
TypeDoc
Decorator
@boundMethod