Forces all written events to be buffered in memory. The buffered data will be flushed when BufferedEventEmitter.uncork is called.
Synchronously calls each of the listeners registered for the event key supplied in registration order. If the BufferedEventEmitter is currently corked, the event will be buffered until BufferedEventEmitter.uncork is called.
The name of the event
Event payload
Flushes all data buffered since BufferedEventEmitter.cork was called.
NOTE: It is HIGHLY recommended that uncorking should always be done via
process.nextTick
, not during the EventEmitter.on()
call.
Generated using TypeDoc
Provides buffered event emitting semantics, similar to many Node-style streams. Subclasses will override BufferedEventEmitter.on and trigger uncorking. NOTE: It is HIGHLY recommended that uncorking should always be done via
process.nextTick()
, not during the BufferedEventEmitter.on call.See also: Node writable streams