Returns true when the calling thread is running in a parallel phase. Being inside an actor does not by itself mean parallel; this reports the phase at the moment you call it. Scheduling work onto actors is refused while this is true. Also registered as checkparallel.

Returns

boolean
true if the thread is in a parallel phase.

Example