search/
Start typing to search packages!
package_2
lightsignal
By @wiam77
Roblox
Mirroredlightsignal
lightsignal is a minimal signal implementation for the Roblox and Lune runtimes (or any Luau runtime with the task library, really),
inspired by GoodSignal, with a twist: there are no connections.
Instead, you can directly reference a signal's callbacks.
Installation
Pesde
# pesde add wiam/rl && pesde install
Wally
Add the following to your wally.toml, in the [dependencies] section:
lightsignal = "wiam77/lightsignal@<version>"
Then run:
# wally install
npm
# npm install @rbxts/lightsignal
Usage
--!strict
local lightsignal = require("path/to/rl")
local my_signal : lightsignal.signal<string> = lightsignal.new()
my_signal:connect(function(message)
print(message)
end)
my_signal:once(function(message)
print(message)
end)
task.delay(1, function()
my_signal:fire("Hello, World!")
end)
local message = my_signal:wait()
print(message)
Package Details
Install command (Click to copy)
Version
0.2.0
License
GPL-3.0
Legal risk for closed-source games
Strong copyleft: shipping this in your game plausibly requires releasing your game's entire source under GPL-3.0. Not recommended for closed-source projects.
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
