git ssb

2+

Dominic / pull-stream



Tree: 2d4523dffda72662b6872ac393ee20e811eee7b1

Files: 2d4523dffda72662b6872ac393ee20e811eee7b1 / docs / throughs / index.md

877 bytesRaw

Throughs

A Through is a stream that both reads and is read by another stream.

Through streams are optional.

Put through streams in-between sources and sinks, like this:

pull(source, through, sink)

Also, if you don't have the source/sink yet, you can pipe multiple through streams together to get one through stream!

var throughABC = function () {
  return pull(
    throughA(),
    throughB(),
    throughC()
  )
}

Which can then be treated like a normal through stream!

pull(source(), throughABC(), sink())

See also:

map

asyncMap

filter

filterNot

unique

nonUnique

take

flatten

Built with git-ssb-web