billmalarky/react-native-queue

what is the difference between worker and job?

aacxg opened this issue · 2 comments

aacxg commented

what is the difference between worker and job?

A worker is the function that handles jobs of a given type.

For example, if you were to make a queue that downloads files, you would have a worker that did the actual HTTP request and stored the file on the device, while jobs contain the details of the download - the URL that should be downloaded, for instance.