Cancel ThreadRoblox✎
Stops a thread from Spawn, Defer or Delay. Errors if the thread has already finished, so keep the reference only while it is live.
Pending review
- needs the Roblox engine — its datatypes, its DataModel or its scheduler
Inputs
- in:execution
- Thread:threadmust be wired
Outputs
- then:execution
What it compiles to
luau
task.cancel(thread)
Not reviewed yet