Home > rc-js-util > ITemporaryListener
Provides a communication channel via callbacks which can be easily cleared & copied.
Signature:
export interface ITemporaryListener<TArgs extends []>
| Method | Description |
|---|---|
| addListener(listener) | |
| clearingEmit(args) | Emits an event and then clears the listeners. |
| clearListeners() | |
| emit(args) | |
| getTargets() | |
| initializeListener(callback) |