Skip to content
Signals & connectionsOverview

defersignal

Represents deferred signal dispatch.

Details#

Schedules local signal-handler dispatch with the supplied arguments instead of immediate invocation. Keep the event and subscriptions alive until deferred work has had a chance to run.

Examples#

Example

Luau
local event = Instance.new("BindableEvent")
local connection = event.Event:Connect(print)
defersignal(event.Event, "deferred")
task.delay(1, function() connection:Disconnect(); event:Destroy() end)