isparallel Synchronous
checkparallelis_parallel
Report whether the current Luau execution is in a parallel phase. Check it before choosing work that depends on the current scheduler context.
Luau
isparallel() -> booleanParameters
This function takes no arguments.
Returns
booleantrue during parallel execution; false otherwise.
Example
Luau
if isparallel() then
print("Running in a parallel phase")
else
print("Running in a serial phase")
end