@effect/platform 0.27.1 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -157,7 +157,7 @@ const makeManager$1 = /*#__PURE__*/Effect__namespace.gen(function* (_) {
|
|
|
157
157
|
execute,
|
|
158
158
|
executeEffect
|
|
159
159
|
};
|
|
160
|
-
});
|
|
160
|
+
}).pipe(Effect__namespace.parallelFinalizers);
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
});
|
|
@@ -189,7 +189,7 @@ const makePool$1 = () => options => Effect__namespace.gen(function* (_) {
|
|
|
189
189
|
executeEffect: message => Effect__namespace.flatMap(Effect__namespace.scoped(backing.get()), worker => worker.executeEffect(message))
|
|
190
190
|
};
|
|
191
191
|
return pool;
|
|
192
|
-
})
|
|
192
|
+
});
|
|
193
193
|
|
|
194
194
|
/** @internal */
|
|
195
195
|
const makePoolLayer$1 = managerLayer => (tag, options) => Layer__namespace.provide(managerLayer, Layer__namespace.scoped(tag, makePool$1()(options)));
|
|
@@ -157,7 +157,7 @@ const makeManager$1 = /*#__PURE__*/Effect__namespace.gen(function* (_) {
|
|
|
157
157
|
execute,
|
|
158
158
|
executeEffect
|
|
159
159
|
};
|
|
160
|
-
});
|
|
160
|
+
}).pipe(Effect__namespace.parallelFinalizers);
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
});
|
|
@@ -189,7 +189,7 @@ const makePool$1 = () => options => Effect__namespace.gen(function* (_) {
|
|
|
189
189
|
executeEffect: message => Effect__namespace.flatMap(Effect__namespace.scoped(backing.get()), worker => worker.executeEffect(message))
|
|
190
190
|
};
|
|
191
191
|
return pool;
|
|
192
|
-
})
|
|
192
|
+
});
|
|
193
193
|
|
|
194
194
|
/** @internal */
|
|
195
195
|
const makePoolLayer$1 = managerLayer => (tag, options) => Layer__namespace.provide(managerLayer, Layer__namespace.scoped(tag, makePool$1()(options)));
|
|
@@ -124,7 +124,7 @@ const makeManager$1 = /*#__PURE__*/Effect.gen(function* (_) {
|
|
|
124
124
|
execute,
|
|
125
125
|
executeEffect
|
|
126
126
|
};
|
|
127
|
-
});
|
|
127
|
+
}).pipe(Effect.parallelFinalizers);
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
});
|
|
@@ -156,7 +156,7 @@ const makePool$1 = () => options => Effect.gen(function* (_) {
|
|
|
156
156
|
executeEffect: message => Effect.flatMap(Effect.scoped(backing.get()), worker => worker.executeEffect(message))
|
|
157
157
|
};
|
|
158
158
|
return pool;
|
|
159
|
-
})
|
|
159
|
+
});
|
|
160
160
|
|
|
161
161
|
/** @internal */
|
|
162
162
|
const makePoolLayer$1 = managerLayer => (tag, options) => Layer.provide(managerLayer, Layer.scoped(tag, makePool$1()(options)));
|
package/package.json
CHANGED
package/src/internal/worker.ts
CHANGED
|
@@ -214,7 +214,7 @@ export const makeManager = Effect.gen(function*(_) {
|
|
|
214
214
|
const join = Fiber.join(fiber)
|
|
215
215
|
|
|
216
216
|
return { id, join, execute, executeEffect }
|
|
217
|
-
})
|
|
217
|
+
}).pipe(Effect.parallelFinalizers)
|
|
218
218
|
}
|
|
219
219
|
})
|
|
220
220
|
})
|
|
@@ -271,9 +271,7 @@ export const makePool = <W>() =>
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
return pool
|
|
274
|
-
})
|
|
275
|
-
Effect.parallelFinalizers
|
|
276
|
-
)
|
|
274
|
+
})
|
|
277
275
|
|
|
278
276
|
/** @internal */
|
|
279
277
|
export const makePoolLayer = <W>(managerLayer: Layer.Layer<never, never, Worker.WorkerManager>) =>
|