| 2018 | |
| 2019 | /* @internal */ |
| 2020 | export const allSuccesses = <Eff extends Effect.Effect<any, any, any>>( |
| 2021 | elements: Iterable<Eff>, |
| 2022 | options?: { |
| 2023 | readonly concurrency?: Concurrency | undefined |
| 2024 | readonly batching?: boolean | "inherit" | undefined |
| 2025 | readonly concurrentFinalizers?: boolean | undefined |
| 2026 | } |
| 2027 | ): Effect.Effect<Array<Effect.Effect.Success<Eff>>, never, Effect.Effect.Context<Eff>> => |
| 2028 | core.map( |
| 2029 | all(RA.fromIterable(elements).map(core.exit), options), |
| 2030 | RA.filterMap((exit) => core.exitIsSuccess(exit) ? Option.some(exit.effect_instruction_i0) : Option.none()) |
| 2031 | ) |
| 2032 | |
| 2033 | /* @internal */ |
| 2034 | export const replicate = dual< |