// ets_tracing: off
import * as CS from "../../../../Cause";
import * as E from "../../../../Either";
import * as C from "../core";
/**
 * Reads an input and continue exposing both error and completion
 */

export function readWith(inp, error, done) {
  return C.readWithCause(inp, c => E.fold_(CS.failureOrCause(c), error, C.failCause), done);
}
//# sourceMappingURL=readWith.js.map