A Typed Signal Implementation similar to RBXScriptSignal
with camelCasing & thread-pooling.
- Typed
- Thread-Pooling
- Parallel Support
local Signal = require("signal.lua")
local mySignal = Signal.new()
local myConnection = mySignal:connect(function(...)
print(...)
end)
mySignal:fire("Hello, world!")
-- Prints "Hello, world!"
-- Always disconnect your Connections!
myConnection:disconnect()
-- Or to disconnect all:
mySignal:disconnectAll()
To build yourself, use:
rojo build -o "Signal.rbxm"
Note: Wally does not export types automatically and will display a type-error in one of the Dependencies. To fix this, see https://github.com/JohnnyMorganz/wally-package-types.
For more help, check out the Rojo documentation.