All Projects → joshtynjala → signal.lua

joshtynjala / signal.lua

Licence: other
Signals are a light-weight messaging tools for Lua and the Corona SDK.

Programming Languages

lua
6591 projects

Labels

Projects that are alternatives of or similar to signal.lua

dicodile
Experiments for "Distributed Convolutional Dictionary Learning (DiCoDiLe): Pattern Discovery in Large Images and Signals"
Stars: ✭ 15 (+0%)
Mutual labels:  signals
sigctx
Go contexts for graceful shutdown
Stars: ✭ 55 (+266.67%)
Mutual labels:  signals
uevloop
A fast and lightweight event loop for embedded platforms.
Stars: ✭ 61 (+306.67%)
Mutual labels:  signals
TradeBot
Crypto trading bot using Binance API (Java)
Stars: ✭ 292 (+1846.67%)
Mutual labels:  signals
Simulink-Arduino-Serial
How to connect Arduino and Simulink
Stars: ✭ 54 (+260%)
Mutual labels:  signals
FastSignals
Easy to use, fast and lightweight C++17 signals and slots library, drop-in replacement for the Boost.Signals2
Stars: ✭ 20 (+33.33%)
Mutual labels:  signals
cs signal
Thread aware Signal/Slot library
Stars: ✭ 58 (+286.67%)
Mutual labels:  signals
signal-wrangler
Signal handler for multi threaded C++ applications on Linux
Stars: ✭ 21 (+40%)
Mutual labels:  signals

signal.lua

A simple implementation of Signals for Lua and Ansca’s Corona SDK by Josh Tynjala. Inspired by as3-signals, the ActionScript implementation by Robert Penner.

Usage

local signal = require("signal")

local function onSignalListener(message)
	-- prints "signal says:   hello!  nil"
	print("signal says:", message, self)
end

local myTable = {}
function myTable:method(message)
	-- prints "signal says:   hello!  table: ########"
	print("signal says:", message, self)
end

local onSignal = signal.new()
onSignal:add(onSignalListener) --no scope
onSignal:add(myTable.method, myTable) --include scope
onSignal:dispatch("hello!")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].