parallel
Parallel Luau block. Emits task.desynchronize / task.synchronize.
Syntax
Section titled “Syntax”parallel { ComputeComplexPhysics();};Parameters
Section titled “Parameters”None.
Return value
Section titled “Return value”None.
Luau emit
Section titled “Luau emit”task.desynchronize() … task.synchronize()
Description
Section titled “Description”Actors and thread safety are Roblox engine rules. Do not touch Instances unsafely inside the block. See Roblox Parallel Luau docs for what is legal.
Example
Section titled “Example”parallel { ComputeComplexPhysics();};Emits:
task.desynchronize()ComputeComplexPhysics()task.synchronize()