isparallel
Returns whether the current thread is in parallel state.
function isparallel(): booleanbooleanTrue if the current lua state is in parallel phase.Usage
Check parallel state
print(if isparallel() then "In Parallel" else "Not In Parallel")