No Description 565B


A simple abort handler for ppstreams that just passes on an incoming abort notification to the direct upstream.


"use strict";

const propagateAbort = require("@ppstreams/propagate-abort");
const propagatePeek = require("@ppstreams/propagate-peek");

module.exports = function makeStream() {
    return {
        description: `pass-through stream`,
        read: (source) => {
            /* This example stream just passes through the upstream value */
        abort: propagateAbort,
        peek: propagatePeek