(parallelism: number)
| 2808 | /* @internal */ |
| 2809 | export const parallelNFinalizers = |
| 2810 | (parallelism: number) => <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> => |
| 2811 | core.contextWithEffect((context) => |
| 2812 | Option.match(Context.getOption(context, scopeTag), { |
| 2813 | onNone: () => self, |
| 2814 | onSome: (scope) => { |
| 2815 | if (scope.strategy._tag === "ParallelN" && scope.strategy.parallelism === parallelism) { |
| 2816 | return self |
| 2817 | } |
| 2818 | return core.flatMap( |
| 2819 | core.scopeFork(scope, ExecutionStrategy.parallelN(parallelism)), |
| 2820 | (inner) => scopeExtend(self, inner) |
| 2821 | ) |
| 2822 | } |
| 2823 | }) |
| 2824 | ) |
| 2825 | |
| 2826 | /* @internal */ |
| 2827 | export const finalizersMask = (strategy: ExecutionStrategy.ExecutionStrategy) => |
no test coverage detected