js-util

Home > rc-js-util > ITemporaryListener

ITemporaryListener interface

Provides a communication channel via callbacks which can be easily cleared & copied.

Signature:

export interface ITemporaryListener<TArgs extends []> 

Methods

Method Description
addListener(listener)  
clearingEmit(args) Emits an event and then clears the listeners.
clearListeners()  
emit(args)  
getTargets()  
initializeListener(callback)