| 2008 | |
| 2009 | /* @internal */ |
| 2010 | export const allSuccesses = <Eff extends Effect.Effect<any, any, any>>( |
| 2011 | elements: Iterable<Eff>, |
| 2012 | options?: { |
| 2013 | readonly concurrency?: Concurrency | undefined |
| 2014 | readonly batching?: boolean | "inherit" | undefined |
| 2015 | readonly concurrentFinalizers?: boolean | undefined |
| 2016 | } |
| 2017 | ): Effect.Effect<Array<Effect.Effect.Success<Eff>>, never, Effect.Effect.Context<Eff>> => |
| 2018 | core.map( |
| 2019 | all(RA.fromIterable(elements).map(core.exit), options), |
| 2020 | RA.filterMap((exit) => core.exitIsSuccess(exit) ? Option.some(exit.effect_instruction_i0) : Option.none()) |
| 2021 | ) |
| 2022 | |
| 2023 | /* @internal */ |
| 2024 | export const replicate = dual< |