0.2.3 • Published 6 years ago

pull-defer v0.2.3

Weekly downloads
38,334
License
MIT
Repository
github
Last release
6 years ago

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

@infinitebrahmanuniverse/nolb-pul@everything-registry/sub-chunk-2492ipfs-postmsg-proxyipfs-hdipfs-mfs-cryptoipfs-vueget-arch-master-keysicebreaker-networkidb-pull-blob-storeipfs-apiipfs-ci-testlibp2p-tlslibp2p-pnetlevel-sublevellevel-pull-blob-store@chakra-swap/core@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deploy@arve.knudsen/libp2p-secio@decentralized-identity/sidetree-ipfs-datastores@eliteswap/v2-core@jimpick/ipfseth-libp2p-seciofs-pull-blob-storeocrio-ipfs-http-clientpatchcorepatchdeckpeer-crdtpeersafe-ipfspeersafe-pdfskappa-view-pull-querymynosqlnpmqmtg-tourney-appmultiblobpull-readyablepull-reconnectpull-http-clientpull-xhrpull-sortprivate-streampull-bufferscuttle-injectscuttle-invite-dbscuttle-tagsecure-scuttlebutt_flumessb-pacmanssb-patchworkssb-phidgetssb-revisionsssb-social-indexssb-tribes2ssb-storage-usedssb-chess-dbssb-contactssb-blob-filesssb-blobsssb-bluetooth-repeaterssb-box2ssb-browser-coressb-ebtssb-mobile-bluetooth-managerssb-mobile-bluetooth-manager-forkssb-hyper-blobsssb-invites-dbssb-meta-feedstre-compile@igniswap/igni-swap-libxs-js-interface-datastorexs-js-ipldzeronet-zite@afria/afria-libraries@borealisswap/borealis-swap-lib@kodinghandle/bullswap-lib@litedexdev/litedex-core-swap@innoswap/core@materia-dex/materia-contracts-proxy@ocario/ipfs-http-client@olympfin/olymp-swap-lib@michaelmure/ipfs-api@sudophunk/fulido@thismr/bitmindtest-corebittodoboot-bonealligatoralligator-clientaegir-test-repo@zippie/ipfs-postmsg-proxy@zalastax/nolb-pul@xstorage/xs-js-libp2p-secio@xswap/v2-core@xstorage/xs-js-interface-connection
0.2.3

6 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.0

10 years ago