canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

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

Cancel ThreadThread
  • 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