Review funkt

This commit is contained in:
2026-08-09 21:56:00 +00:00
parent f522ae9953
commit fe9dfa4519
11366 changed files with 2335077 additions and 97 deletions

View File

@@ -0,0 +1,20 @@
import { BackendFactory, QueueEventsProducerOptions } from '../interfaces';
import { QueueBase } from './queue-base';
/**
* The QueueEventsProducer class is used for publishing custom events.
*/
export declare class QueueEventsProducer extends QueueBase {
constructor(name: string, opts?: QueueEventsProducerOptions, backendFactory?: BackendFactory);
/**
* Publish custom event to be processed in QueueEvents.
* @param argsObj - Event payload
* @param maxEvents - Max quantity of events to be saved
*/
publishEvent<T extends {
eventName: string;
}>(argsObj: T, maxEvents?: number): Promise<void>;
/**
* Closes the connection and returns a promise that resolves when the connection is closed.
*/
close(): Promise<void>;
}