Connection: Fire Asynchronous
Run this inspected listener’s callback with task.spawn and your supplied arguments. It is useful for testing one handler without firing the whole signal.
Luau
Connection:Fire(...args: any) -> ()Parameters
Call this method with a Connection receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.
| Parameter | Type | Description |
|---|---|---|
...args | any | Arguments passed directly to the selected callback. |
Returns
()No values.
Usage notes
This schedules only this Connection’s Lua callback. It does not fire other listeners or replicate the source event. A one-shot connection is disconnected before its callback is scheduled.
Example
Luau
local event = Instance.new("BindableEvent")
event.Event:Connect(function(value) print("Received", value) end)
local connection = getconnection(event.Event, 1)
if connection then connection:Fire("test") end
task.wait()
event:Destroy()