From c541e07bb561703b31cc35a7e5c42700b432e20a Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Mon, 6 Jun 2016 15:15:12 -0700 Subject: [PATCH] fix wording around worker functions --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ed24df1..135dce5 100644 --- a/readme.md +++ b/readme.md @@ -136,7 +136,7 @@ var asyncWorker = function (payload) { ``` -Both are valid, but the `workerFn2` is likely to be more useful when retrieving the output, as the application doesn't need to know or make assumptions about the type of content the worker returned. +All of the above are valid. `workerFn2` and `asyncWorker` are likely to be more useful when retrieving the output, as the application doesn't need to know or make assumptions about the type of content the worker returned. Note that returning a Promise is all that's required for an async result in the worker functions. ## Scaling the queue