Parameters
function
required
The function to run a single time.
Returns
Connection
A connection with a
:Disconnect() method.Example
Errors
Related
connect: run on every fire.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Connect a handler that runs once.
Signal:Once(handler: function) -> Connection
:Disconnect() method.bus:Once(function()
print("fired once")
end)
| Message | Condition |
|---|---|
signal has no handler list | The signal object was malformed. |
connect: run on every fire.