Reactive Extensions for Lua

bjorn ed9b5268e2 Small BehaviorSubject fixes; %!s(int64=9) %!d(string=hai) anos
doc ed9b5268e2 Small BehaviorSubject fixes; %!s(int64=9) %!d(string=hai) anos
examples 01b87a5577 Fix scheduler examples; %!s(int64=10) %!d(string=hai) anos
src ed9b5268e2 Small BehaviorSubject fixes; %!s(int64=9) %!d(string=hai) anos
tests 007d9bce3d ReplaySubject; %!s(int64=9) %!d(string=hai) anos
tools 007d9bce3d ReplaySubject; %!s(int64=9) %!d(string=hai) anos
.travis.yml c4a0b9f48a test 5.1, 5.2 and luajit %!s(int64=10) %!d(string=hai) anos
LICENSE d64834faa6 Initial commit; %!s(int64=10) %!d(string=hai) anos
README.md 033c95d9b4 Update README; %!s(int64=10) %!d(string=hai) anos
rx.lua ed9b5268e2 Small BehaviorSubject fixes; %!s(int64=9) %!d(string=hai) anos

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.

Contributing

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.