// ets_tracing: off import * as C from "../core.js" import * as Unwrap from "./unwrap.js" import * as ZipRight from "./zipRight.js" export function fromInput( input: C.AsyncInputConsumer ): C.Channel { return Unwrap.unwrap( input.takeWith( (_) => C.failCause(_), (_) => ZipRight.zipRight_(C.write(_), fromInput(input)), (_) => C.end(_) ) ) }