Search
Preparing search index...
The search index is not available
composable
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Hook
Class Hook<T>
Type parameters
T
Hierarchy
Hook
Index
Constructors
constructor
Properties
allow
Concurrent
Notifications
name
notification
Semaphore
subscriptions
Methods
[
Symbol.async
Iterator]
is
Subscribed
notify
set
Parallel
set
Sequential
subscribe
to
Async
Stream
to
Promise
unsubscribe
Constructors
constructor
new
Hook
(
name
:
string
)
:
Hook
Parameters
name:
string
Returns
Hook
Properties
allow
Concurrent
Notifications
allow
Concurrent
Notifications
:
boolean
= false
name
name
:
string
Protected
notification
Semaphore
notification
Semaphore
:
Semaphore
= new Semaphore( 1 )
Protected
subscriptions
subscriptions
:
HookSubscription
<
T
>
[]
= []
Methods
[
Symbol.async
Iterator]
[
Symbol.async
Iterator]
(
)
:
AsyncIterator
<
T
,
any
,
undefined
>
Returns
AsyncIterator
<
T
,
any
,
undefined
>
is
Subscribed
is
Subscribed
(
)
:
boolean
Returns
boolean
notify
notify
(
arg
?:
T
)
:
Promise
<
void
>
Parameters
Optional
arg:
T
Returns
Promise
<
void
>
set
Parallel
set
Parallel
(
)
:
this
Returns
this
set
Sequential
set
Sequential
(
)
:
this
Returns
this
subscribe
subscribe
(
callback
:
HookSubscription
<
T
>
)
:
HookSubscriptionCancellation
Parameters
callback:
HookSubscription
<
T
>
Returns
HookSubscriptionCancellation
to
Async
Stream
to
Async
Stream
(
errorHook
?:
Hook
<
unknown
>
, endHook
?:
Hook
<
unknown
>
)
:
AsyncStream
<
T
>
Parameters
Optional
errorHook:
Hook
<
unknown
>
Optional
endHook:
Hook
<
unknown
>
Returns
AsyncStream
<
T
>
to
Promise
to
Promise
(
errorHook
?:
Hook
<
unknown
>
)
:
Promise
<
T
>
Parameters
Optional
errorHook:
Hook
<
unknown
>
Returns
Promise
<
T
>
unsubscribe
unsubscribe
(
callback
:
HookSubscription
<
T
>
)
:
void
Parameters
callback:
HookSubscription
<
T
>
Returns
void
Globals
Hook
constructor
allow
Concurrent
Notifications
name
notification
Semaphore
subscriptions
[
Symbol.async
Iterator]
is
Subscribed
notify
set
Parallel
set
Sequential
subscribe
to
Async
Stream
to
Promise
unsubscribe
Generated using
TypeDoc