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: QueueDataType<Request>) => void) => VoidFunction;
onQueueChange: (queueKey: string, callback: (values: QueueDataType<Request>) => void) => VoidFunction;
onQueueStatus: (queueKey: string, callback: (values: QueueDataType<Request>) => void) => VoidFunction;
setDrained: (queueKey: string, values: QueueDataType<Request>) => void;
setQueueChanged: (queueKey: string, values: QueueDataType<Request>) => void;
setQueueStatus: (queueKey: string, values: QueueDataType<Request>) => void;
}