Create CoroutineLuau✎
A thread that does not start until it is resumed — the difference from Spawn, which starts at once. Luau's own primitive; `task` is the scheduler built on it.
Pending review
- the language itself, so it works in Roblox and in Lune
- names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals
Inputs
- in:execution
- Function:functionmust be wired
Outputs
- then:execution
- Thread:thread
What it compiles to
luau
coroutine.create(fn)
Not reviewed yet