import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/failNow";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/succeedNow";
import * as tsplus_module_3 from "@tsplus/stdlib/data/Either/fold";
import * as tsplus_module_4 from "@effect/core/stream/Channel/operations/suspend";
/**
 * @tsplus static ets/Channel/Ops fromEither
 */

export function fromEither(either) {
  return tsplus_module_4.suspend(() => tsplus_module_3.fold_(either(), tsplus_module_1.failNow, tsplus_module_2.succeedNow));
}
//# sourceMappingURL=fromEither.mjs.map