Skip to content

create a placeholder for a pull stream that won't start moving until later

License

Notifications You must be signed in to change notification settings

pull-stream/pull-defer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pull-defer

create a placeholder for a pull stream that won't start moving until later.

examples

pull-defer can be used with source, sinks and transform streams.

through

//create a deferred through stream
var deferred = require('pull-defer').through()

pull(
  input,
  deferred,
  output
)

//nothing will happen until deferred.resolve(stream) is called.
deferred.resolve(transform)

source

//create a deferred through stream
var deferred = require('pull-defer').source()

pull(
  deferred,
  output
)

//nothing will happen until deferred.resolve(stream) is called.
deferred.resolve(input)

sink

//create a deferred through stream
var deferred = require('pull-defer').sink()

pull(
  input,
  deferred
)

//nothing will happen until deferred.start(stream) is called.
deferred.resolve(output)

License

MIT

About

create a placeholder for a pull stream that won't start moving until later

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published