Skip to main content
Version: 2.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: 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;
}