Close CoroutineLuau✎
Kills a suspended coroutine and releases what it was holding.
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
- Thread:threadmust be wired
Outputs
- then:execution
- Closed:boolean
What it compiles to
luau
coroutine.close(thread)
Not reviewed yet