( eventName: E, listener: Events[E], context?: any, )
| 466 | * me.event.once("event-name", myFunction, this); |
| 467 | */ |
| 468 | export function once<E extends keyof Events>( |
| 469 | eventName: E, |
| 470 | listener: Events[E], |
| 471 | context?: any, |
| 472 | ) { |
| 473 | eventEmitter.addListenerOnce(eventName, listener, context); |
| 474 | } |
| 475 | |
| 476 | /** |
| 477 | * remove the given listener for a given event. |
no test coverage detected