Skip to content

A Roblox Lua Signal implementation that has full API and behavioral parity with Roblox' RBXScriptSignal. Modified to use deferred signal behavior instead of immediate mode.

License

Notifications You must be signed in to change notification settings

UpliftGames/goodsignaldeferred

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoodSignal

A Roblox Lua Signal implementation that has full API and behavioral parity with Roblox' RBXScriptSignal type.

Full API

-- Create
local sig = Signal.new()

-- Connect and Fire
local connection = sig:Connect(function(arg1, arg2) ... end)
sig:Fire(param1, param2)

-- Wait on Fire
local param1, param2 = sig:Wait()

-- Disconnect
connection:Disconnect()
sig:DisconnectAll()

No Memory Leaks!

GoodSignal is implemented in pure Lua (using the task library, rather than internally using a BindableEvent), so it does not suffer from memory leaks. Even if you don't Disconnect all of the connections on a GoodSignal, everything will still be GCed normally.

About

A Roblox Lua Signal implementation that has full API and behavioral parity with Roblox' RBXScriptSignal. Modified to use deferred signal behavior instead of immediate mode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%