4.7 Jobserver Client
Added in version 1.1.
When a procedure is returned, it accepts one argument: 'get or 'put. Apply the procedure with 'get to acquire a jobserver token, and apply the procedure with 'put to release a previously acquired token. The implicit jobserver token that belongs to the zuo process should be taken explicitly with 'get and released with 'put.
The maybe-jobserver-client procedure must be called in a threading context. When it returns a procedure, that procedure must also be called (with 'get or 'put) in the same threading context.
procedure
(maybe-jobserver-jobs) → (or/c integer? #f)
Using maybe-jobserver-client to cooperate interactively with the jobserver is normally better, but maybe-jobserver-jobs can be useful to chaining to another tool that accepts job count as a number.
Unlike maybe-jobserver-client, maybe-jobserver-jobs does not need to be called in a threading context.