Reactive Extensions for Lua

bjorn 01b87a5577 Fix scheduler examples; 10 年之前
doc 18b4ff4431 concat; update documentation; 10 年之前
examples 01b87a5577 Fix scheduler examples; 10 年之前
src c28f444dba onComplete -> onCompleted; 10 年之前
tests c3eb908382 Update tests; 10 年之前
tools 04f925dfa8 Separate source into src directory; Minor fixes; 10 年之前
.travis.yml 5b5b3c580a Update .travis.yml; 10 年之前
LICENSE d64834faa6 Initial commit; 10 年之前
README.md 0413266ca8 Update README; 10 年之前
rx.lua 18b4ff4431 concat; update documentation; 10 年之前

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.