Signal: Destroy Synchronous
KawaiiSignal:DestroyPsmSignal:DestroyVoltSignal:Destroy
Finish using a custom Signal by disconnecting its callbacks and clearing its waiting coroutines. Call it during cleanup for UI or temporary systems.
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
Luau
local changed = Signal.new()
changed:Connect(function() print("Update") end)
changed:Destroy()