import * as C from "../core";
import * as DoneCollect from "./doneCollect";
/**
 * Returns a new channel that collects the output and terminal value of this channel, which it
 * then writes as output of the returned channel.
 */

export function emitCollect(self) {
  return C.chain_(DoneCollect.doneCollect(self), t => C.write(t));
}
//# sourceMappingURL=emitCollect.js.map