This package has been deprecated

Author message:

code incorporated into module pipestreams, q.v.

pull-through-with-end-symbol

1.0.20 • Public • Published

pull-through

pull-through-with-end-symbol is identical to pull-stream/pull-through, except that null has no special meaning and does not end (abort) the stream anymore, but Symbol.for( 'pipestreams:end' ) does.

through ported to pull-stream style.

Example

Same Good Old Api, Brand New Underlying Mechanism.

var through = require('pull-through')

var ts = through(function (data) {
  this.queue(data)
}, function (end) {
  this.queue(Symbol.for( 'pipestreams:end' ))
})

Incompatibility

DON'T

use var self = this, don't keep a reference.

var WRONG = through(function (data) { WRONG.queue(data) })

DO

through(function (data) { this.queue(data) })

Maybe this will change. this is a little more tricky with pull-streams, though.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i pull-through-with-end-symbol

Weekly Downloads

2

Version

1.0.20

License

MIT

Unpacked Size

8.56 kB

Total Files

6

Last publish

Collaborators

  • loveencounterflow