Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

bortexz/flyd-once

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flyd-once

Build Status

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])

About

Once stream for flyd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published