Fix
All checks were successful
Lint / lint (push) Successful in 15s

This commit is contained in:
Julien Valverdé
2026-03-31 15:21:06 +02:00
parent a373aee08b
commit 1588bd0a1b

View File

@@ -223,9 +223,7 @@ export const unsafeForkEffect = Effect.fnUntraced(function* <A, E, R, P = never>
([latest, stream]) => Stream.concat(Stream.make(latest), stream),
))
},
modify: <B, E1, R1>(
f: (a: Result<A, E, P>) => Effect.Effect<readonly [B, Result<A, E, P>], E1, R1>
): Effect.Effect<B, E1, R1> => Ref.get(ref).pipe(
modify: f => Ref.get(ref).pipe(
Effect.flatMap(f),
Effect.flatMap(([b, a]) => Ref.set(ref, a).pipe(
Effect.as(b),