A multi-threaded job queue.
|(require job-queue)||package: job-queue-lib|
: (parameter/c (or/c false/c exact-nonnegative-integer?))
An identifier for the current worker, or #f outside a manager.
v : any/c
Returns true if v is a job queue.
how-many-workers : exact-nonnegative-integer?
Starts a queue with how-many-workers threads servicing jobs.
jq : job-queue? job : (-> any)
Runs job by one of jq’s workers. job is run in the same parameterization as the call to submit-job!. This call will never block.
jq : job-queue?