(parallelism: number)
| 2798 | /* @internal */ |
| 2799 | export const parallelNFinalizers = |
| 2800 | (parallelism: number) => <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> => |
| 2801 | core.contextWithEffect((context) => |
| 2802 | Option.match(Context.getOption(context, scopeTag), { |
| 2803 | onNone: () => self, |
| 2804 | onSome: (scope) => { |
| 2805 | if (scope.strategy._tag === "ParallelN" && scope.strategy.parallelism === parallelism) { |
| 2806 | return self |
| 2807 | } |
| 2808 | return core.flatMap( |
| 2809 | core.scopeFork(scope, ExecutionStrategy.parallelN(parallelism)), |
| 2810 | (inner) => scopeExtend(self, inner) |
| 2811 | ) |
| 2812 | } |
| 2813 | }) |
| 2814 | ) |
| 2815 | |
| 2816 | /* @internal */ |
| 2817 | export const finalizersMask = (strategy: ExecutionStrategy.ExecutionStrategy) => |
no test coverage detected