Skip to content
Saiko

isparallel

Returns true when the current thread is running in parallel (desynchronized) and false when it is running serially.

Signature

luau
isparallel(): boolean

Returns

boolean

Note

Example

luau
print(isparallel()) --> false

run_on_actor(getactors()[1], [[
    print(isparallel()) --> false
    task.desynchronize()
    print(isparallel()) --> true
    task.synchronize()
    print(isparallel()) --> false
]])