method
Job.is_worker
Job.is_worker() -> bool
True when the code is running on a Job.parallel_for pool thread, false on the main thread (and on
the calling thread while it takes its own share of a batch).
Example
if not Job.is_worker() { print("main thread") }