Search
Preparing search index...
The search index is not available
EF Chat-Bot Conversation Generator
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
"lib/event/Emitter"
EventEmitter
Class EventEmitter
An extended event emitter:
Has an
invoke
method that iterates of the callback return value
Has a catcher that can handle callback exceptions
Hierarchy
EventEmitter
Implements
IEventEmitterExtendedMutable
Index
Constructors
constructor
Properties
__computed
Accessors
catcher
max
Listeners
default
Catcher
default
Max
Listeners
Methods
__@iterator
callbacks
dispose
emit
entries
event
Names
get
Catcher
get
Max
Listeners
invoke
keys
listener
Count
listeners
names
off
on
once
remove
All
Listeners
set
Catcher
set
Max
Listeners
subscribe
values
Constructors
constructor
new
Event
Emitter
(
init
?:
Init
)
:
EventEmitter
Parameters
Optional
init:
Init
Returns
EventEmitter
Properties
Static
__computed
__computed
:
ICatcher
= eventEmitterCatcher
Accessors
catcher
get
catcher
(
)
:
ICatcher
|
undefined
set
catcher
(
value
:
ICatcher
|
undefined
)
:
void
Returns
ICatcher
|
undefined
Parameters
value:
ICatcher
|
undefined
Returns
void
max
Listeners
get
maxListeners
(
)
:
number
|
undefined
set
maxListeners
(
value
:
number
|
undefined
)
:
void
Returns
number
|
undefined
Parameters
value:
number
|
undefined
Returns
void
Static
default
Catcher
get
defaultCatcher
(
)
:
ICatcher
set
defaultCatcher
(
value
:
ICatcher
)
:
void
Returns
ICatcher
Parameters
value:
ICatcher
Returns
void
Static
default
Max
Listeners
get
defaultMaxListeners
(
)
:
number
set
defaultMaxListeners
(
value
:
number
)
:
void
Returns
number
Parameters
value:
number
Returns
void
Methods
__@iterator
__@iterator
(
)
:
IterableIterator
<
[
Event
,
IterableIterator
<
IListener
>
]
>
Returns
IterableIterator
<
[
Event
,
IterableIterator
<
IListener
>
]
>
callbacks
callbacks
(
event
:
Event
)
:
IterableIterator
<
ICallback
>
Parameters
event:
Event
Returns
IterableIterator
<
ICallback
>
dispose
dispose
(
)
:
this
Returns
this
emit
emit<A>
(
event
:
Event
,
...
args
:
A
)
:
boolean
Type parameters
A
:
Array
<
unknown
>
Parameters
event:
Event
Rest
...
args:
A
Returns
boolean
entries
entries
(
)
:
IterableIterator
<
[
Event
,
IterableIterator
<
IListener
>
]
>
Returns
IterableIterator
<
[
Event
,
IterableIterator
<
IListener
>
]
>
event
Names
event
Names
(
)
:
Array
<
Event
>
Returns
Array
<
Event
>
get
Catcher
get
Catcher
(
)
:
ICatcher
Returns
ICatcher
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
invoke
invoke<A>
(
event
:
Event
,
...
args
:
A
)
:
IterableIterator
<
any
>
Type parameters
A
:
Array
<
unknown
>
Parameters
event:
Event
Rest
...
args:
A
Returns
IterableIterator
<
any
>
keys
keys
(
)
:
IterableIterator
<
Event
>
Returns
IterableIterator
<
Event
>
listener
Count
listener
Count
(
event
:
Event
)
:
number
Parameters
event:
Event
Returns
number
listeners
listeners
(
event
:
Event
)
:
Array
<
IListener
>
Parameters
event:
Event
Returns
Array
<
IListener
>
names
names
(
)
:
IterableIterator
<
Event
>
Returns
IterableIterator
<
Event
>
off
off
(
event
:
"newListener"
|
"removeListener"
, listener
:
function
)
:
this
off
(
event
:
Event
, listener
:
IListener
)
:
this
Parameters
event:
"newListener"
|
"removeListener"
listener:
function
(
event
:
Event
, listener
:
IListener
)
:
void
Parameters
event:
Event
listener:
IListener
Returns
void
Returns
this
Parameters
event:
Event
listener:
IListener
Returns
this
on
on
(
event
:
"newListener"
|
"removeListener"
, listener
:
function
)
:
this
on
(
event
:
Event
, listener
:
IListener
|
ICallback
)
:
this
Parameters
event:
"newListener"
|
"removeListener"
listener:
function
(
event
:
Event
, listener
:
IListener
)
:
void
Parameters
event:
Event
listener:
IListener
Returns
void
Returns
this
Parameters
event:
Event
listener:
IListener
|
ICallback
Returns
this
once
once
(
event
:
"newListener"
|
"removeListener"
, listener
:
function
)
:
this
once
(
event
:
Event
, listener
:
IListener
)
:
this
Parameters
event:
"newListener"
|
"removeListener"
listener:
function
(
event
:
Event
, listener
:
IListener
)
:
void
Parameters
event:
Event
listener:
IListener
Returns
void
Returns
this
Parameters
event:
Event
listener:
IListener
Returns
this
remove
All
Listeners
remove
All
Listeners
(
event
?:
Event
)
:
this
Parameters
Optional
event:
Event
Returns
this
set
Catcher
set
Catcher
(
value
:
ICatcher
)
:
this
Parameters
value:
ICatcher
Returns
this
set
Max
Listeners
set
Max
Listeners
(
value
:
number
)
:
this
Parameters
value:
number
Returns
this
subscribe
subscribe
(
event
:
"newListener"
|
"removeListener"
, listener
:
function
)
:
IEventEmitterSubscriptionMutable
subscribe
(
event
:
Event
, listener
:
IListener
)
:
IEventEmitterSubscriptionMutable
Parameters
event:
"newListener"
|
"removeListener"
listener:
function
(
event
:
Event
, listener
:
IListener
)
:
void
Parameters
event:
Event
listener:
IListener
Returns
void
Returns
IEventEmitterSubscriptionMutable
Parameters
event:
Event
listener:
IListener
Returns
IEventEmitterSubscriptionMutable
values
values
(
)
:
IterableIterator
<
IterableIterator
<
IListener
>
>
Returns
IterableIterator
<
IterableIterator
<
IListener
>
>
Globals
"lib/event/
Emitter"
Event
Emitter
constructor
__computed
catcher
max
Listeners
default
Catcher
default
Max
Listeners
__@iterator
callbacks
dispose
emit
entries
event
Names
get
Catcher
get
Max
Listeners
invoke
keys
listener
Count
listeners
names
off
on
once
remove
All
Listeners
set
Catcher
set
Max
Listeners
subscribe
values
klass
An extended event emitter:
invoke
method that iterates of the callback return value