Skip to content

Commit

Permalink
Merge pull request #9 from glensc/patch-1
Browse files Browse the repository at this point in the history
Readme: add missing word worker 👷
  • Loading branch information
jasrusable committed Jun 12, 2020
2 parents 4abc917 + b87c076 commit c25d77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ await manager.quit();

#### createWorker

A is responsible for taking enqueued tasks off of the queue and processing them. Create a worker by calling `createWorker` with at least a `queue`, `redisConfig` and `handler` parameter.
A worker is responsible for taking enqueued tasks off of the queue and processing them. Create a worker by calling `createWorker` with at least a `queue`, `redisConfig` and `handler` parameter.

The `handler` parameter should be a function which receives a task and is responsible for processing the task.
The handler should return a promise which should resolve if the task was successful, or reject if failed.
Expand Down

0 comments on commit c25d77c

Please sign in to comment.