Class: NodeSignal
Constructors
constructor
• new NodeSignal()
Defined in
Properties
connections
• connections: NodeSignalConnection
[]
Defined in
destroyed
• destroyed: boolean
Defined in
Methods
connect
▸ connect(Callback
): NodeSignalConnection
Lets you listen to a specific event
Parameters
Name | Type | Description |
---|---|---|
Callback | Function | The function you want you want to listen to the event with |
Returns
Defined in
destroy
▸ destroy(): void
Destroys the Signal
Returns
void
Defined in
fire
▸ fire(...args
): void
Fires the args to the connected events
Parameters
Name | Type | Description |
---|---|---|
...args | any | The args you want to fire to the connected events |
Returns
void
Defined in
wait
▸ wait(): Promise
<unknown
>
Lets you wait until a function is called to execute
Returns
Promise
<unknown
>