0.0.2 • Published 8 years ago
flyd-once v0.0.2
Flyd-once
Once stream for Flyd
Usage
var stream$ = flyd.stream()
var once$ = once(stream$)
var result = []
flyd.on(function (val) {
result.push(val)
}, once$)
stream$(1)
stream$(2)
assert.deepEqual(result.length, 1)
assert.deepEqual(result, [1])