Signal:Destroy Synchronous

  • KawaiiSignal:Destroy
  • PsmSignal:Destroy
  • VoltSignal:Destroy

Finish using a custom Signal by disconnecting its callbacks and clearing its waiting coroutines. Call it during cleanup for UI or temporary systems.

Syntax
Luau
Signal:Destroy() -> ()

Parameters

Call this method with a Signal receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.

This function takes no arguments.

Returns

()

No values.

Usage notes

Destroy is safe to call again. Other Signal methods raise after destruction. Waiting coroutines cleared by Destroy are not resumed.

Example

Example
Luau
local changed = Signal.new()
changed:Connect(function() print("Update") end)
changed:Destroy()
Kawaii documentation