Constructors
Properties
buffer
handlers
handlers: Map<any, (x: T) => void[]> = ... Readonly
opts
Methods
addGlobalHandler
- addGlobalHandler(handler: (message: T) => void): void
Parameters
- handler: (message: T) => void
Returns void
addHandler
- addHandler(k: any, handler: (message: T) => void): void
Parameters
- k: any
- handler: (message: T) => void
Returns void
clear
- clear(): void
Returns void
pause
- pause(): void
Returns void
push
- push(message: T): void
Returns void
resume
- resume(): void
Returns void
Worker for processing messages in batches with throttling