getDispatcherEvents
import { getDispatcherEvents } from "@hyper-fetch/core"
Description
Defined in dispatcher/dispatcher.events.ts:11
Preview
getDispatcherEvents(emitter)
Parameters
Name | Details |
---|---|
emitter
|
|
Returns
{
onDrained: (queueKey: string, callback: (values: DispatcherData<Command>) => void) => VoidFunction;
onQueueChange: (queueKey: string, callback: (values: DispatcherData<Command>) => void) => VoidFunction;
onQueueStatus: (queueKey: string, callback: (values: DispatcherData<Command>) => void) => VoidFunction;
setDrained: (queueKey: string, values: DispatcherData<Command>) => void;
setQueueChanged: (queueKey: string, values: DispatcherData<Command>) => void;
setQueueStatus: (queueKey: string, values: DispatcherData<Command>) => void;
}