Skip to main content
Version: 5.x.x

getDispatcherEvents


import { getDispatcherEvents } from "@hyper-fetch/core"

Description

Defined in dispatcher/dispatcher.events.ts:11

Preview

getDispatcherEvents(emitter)

Parameters

NameDetails

emitter

Required

EventEmitter

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;
}