A multi-threaded job queue.
|(require (planet jaymccarthy/job-queue))|
|( v) → boolean?|
|v : any/c|
Returns true if v is a job queue.
|( how-many-workers) →|
|how-many-workers : exact-nonnegative-integer?|
Starts a queue with how-many-workers threads servicing jobs.
|( jq job) → void|
|job : (-> any)|
Runs job by one of jq’s workers. job is run in the same parameterization as the call to . This call will never block.
|( jq) → void|
Blocks until all of jq’s current jobs are finished and its workers are dead. Once has been called, jq will reject subsequent requests and will block indefinitely.