Skip to content

Commit

Permalink
Add notes about delByFunction implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Apr 5, 2021
1 parent 9680639 commit adc8e9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ export class Queue extends EventEmitter {

/**
* delByFunction
* * will delete all jobs in the queue of a certain function/class
* * will not prevent new jobs from being added as this method is running
* * will not delete jobs in the delayed queues
* @param q - queue to look in
* @param func - function name to delete any jobs with
* @param start - optional place to start looking in list (default: beginning of list)
Expand Down

0 comments on commit adc8e9f

Please sign in to comment.