Skip to content

made this because i don't like using other people's signal modules. path: src/shared/Signal.luau

License

Notifications You must be signed in to change notification settings

GIassWindows/Yet-Another-Signal-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Signal Implementation

Just another signal implementation with slightly more methods. Also because I don't like using other people's code.

Documentation

local signal = require("..PATH/..TO/..SIGNAL")

local newSignal = signal.new(); -- Instantiate a new signal.

-- Connect method which takes a function that contains the same number of parameters as the :Fire method.
newSignal:Connect(function(...)
    print(...);
end)

newSignal:Fire(...); -- Fire method which passes any number of parameters with any type.

You can disconnect connections using the traditional :Disconnect() method. You can fire a connection once using the traditional :Once() method.

About

made this because i don't like using other people's signal modules. path: src/shared/Signal.luau

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages