sourcevault / flyd-until

until utility function for flyd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flyd-until

Build Status

upstream:                     [-a-b-c-d-e------------]
flydUntil(3,stream):          [-.-.-.----------------]
downstream:                     a b c    

install..

npm install flyd-until
npm install sourcevault/flyd-until#dist

simple example ..

var flydUntil = require ("flyd-until") 

var send = flyd.stream()

flydUntil(3,send)
.map (function (x){
   console.log(x); // a b c
})

setTimeout(function(){
	send("a")
	send("b")
	send("c")
	send("d")
	send("e")
},100)

LICENCE

Code and documentation is released under MIT Licence, see LICENSE for details.

About

until utility function for flyd

License:MIT License


Languages

Language:LiveScript 50.9%Language:JavaScript 49.1%