effect 3.2.3 → 3.2.4

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.
@@ -218,12 +218,15 @@ class PoolImpl<in out A, in out E> implements Pool.Pool<A, E> {
218
218
  const release = (attempted: Attempted<A, E>): Effect.Effect<unknown> =>
219
219
  core.exitMatch(attempted.result, {
220
220
  onFailure: () =>
221
- core.flatten(ref.modify(this.state, (state) => {
222
- if (state.size <= this.min) {
223
- return [allocateUinterruptible(this), { ...state, free: state.free + 1 }] as const
224
- }
225
- return [core.void, { ...state, size: state.size - 1 }] as const
226
- })),
221
+ core.zipRight(
222
+ attempted.finalizer,
223
+ core.flatten(ref.modify(this.state, (state) => {
224
+ if (state.size <= this.min) {
225
+ return [allocateUinterruptible(this), { ...state, free: state.free + 1 }] as const
226
+ }
227
+ return [core.void, { ...state, size: state.size - 1 }] as const
228
+ }))
229
+ ),
227
230
  onSuccess: (item) =>
228
231
  core.flatMap(ref.get(this.invalidated), (set) => {
229
232
  if (pipe(set, HashSet.has(item))) {
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.2.3"
1
+ let moduleVersion = "3.2.4"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4