Reactive Extensions for Lua

bjorn a85d37e50e Test Subscription; 10 vuotta sitten
doc d91176cbea Fix signature for empty/never/throw; 10 vuotta sitten
examples 01b87a5577 Fix scheduler examples; 10 vuotta sitten
src d91176cbea Fix signature for empty/never/throw; 10 vuotta sitten
tests a85d37e50e Test Subscription; 10 vuotta sitten
tools 04f925dfa8 Separate source into src directory; Minor fixes; 10 vuotta sitten
.travis.yml 0690f85742 Update .travis.yml; 10 vuotta sitten
LICENSE d64834faa6 Initial commit; 10 vuotta sitten
README.md 0413266ca8 Update README; 10 vuotta sitten
rx.lua d91176cbea Fix signature for empty/never/throw; 10 vuotta sitten

README.md

RxLua Build Status

Reactive Extensions for Lua.

Examples

Cheer someone on using functional reactive programming:

local Rx = require 'rx'

Rx.Observable.fromRange(1, 4)
  :map(function(x) return x * 2 end)
  :concat(Rx.Observable.fromValue('who do we appreciate'))
  :map(function(value) return value .. '!' end)
  :subscribe(print)

See examples for more.

Documentation

See here.

Tests

Uses lust. Run with:

lua tests/runner.lua

or, to run a specific test:

lua tests/runner.lua skipUntil

Related

License

MIT, see LICENSE for details.