Review funkt
This commit is contained in:
20
node_modules/bullmq/dist/esm/classes/queue-events-producer.d.ts
generated
vendored
Normal file
20
node_modules/bullmq/dist/esm/classes/queue-events-producer.d.ts
generated
vendored
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user