Skip to content

YetAnotherClown/Signal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signal

View docs

A Typed Signal Implementation similar to RBXScriptSignal with camelCasing & thread-pooling.


Features

  • Typed
  • Thread-Pooling
  • Parallel Support

Usage

    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()

Building with Rojo

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.