connection:Defer
Schedules one connection’s callback through the game task library.
Syntax
connection:Defer(...: any) -> ()
Parameters
| Parameter | Type | Description |
|---|---|---|
... | any | Arguments for the deferred callback. |
Description
This is the deferred counterpart of connection:Fire. It does not raise the entire signal, and a native or foreign-state callback might not be callable from this state.
Example
local event = Instance.new("BindableEvent")
event.Event:Connect(function(value) print(value) end)
getconnections(event.Event)[1]:Defer("hello")
These are Game executor contracts. Check build requirements and session lifetimes before using them.
