Skip to content

Commit

Permalink
docs: add JSDoc to Producer
Browse files Browse the repository at this point in the history
  • Loading branch information
OsirisAnubiz committed Oct 10, 2024
1 parent 790cde6 commit 537ec28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nestjs-batch-queue/src/batch-queue/producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import type { QueueName } from './types/index.js'
export class Producer<T> {
constructor(private batchQueue: BatchQueue<T>) {}

/**
* Delegates to {@link BatchQueue.add}
*/
async produce(queueName: QueueName, data: T): Promise<void> {
await this.batchQueue.add({ queueName, item: data })
}
Expand Down

0 comments on commit 537ec28

Please sign in to comment.