import * as tsplus_module_1 from "@effect/core/io/Effect/operations/done";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/mapEffect";
/**
 * Flattens `Exit` values. `Exit.Failure` values translate to stream
 * failures while `Exit.Success` values translate to stream elements.
 *
 * @tsplus fluent ets/Stream flattenExit
 */

export function flattenExit(self, __tsplusTrace) {
  return tsplus_module_2.mapEffect_(self, exit => tsplus_module_1.done(() => exit, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=flattenExit.mjs.map