fix wording around worker functions

This commit is contained in:
2016-06-06 15:15:12 -07:00
parent d70a8cc3ea
commit c541e07bb5

View File

@@ -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 ## Scaling the queue