Refactor
All checks were successful
Lint / lint (push) Successful in 12s

This commit is contained in:
Julien Valverdé
2025-10-23 23:01:27 +02:00
parent 03eca8a1af
commit 6ae311cdfd
4 changed files with 31 additions and 6 deletions

View File

@@ -545,7 +545,7 @@ const runReactEffect = <E, R>(
Effect.bind("exit", ({ scope }) => Effect.exit(Effect.provideService(f(), Scope.Scope, scope))),
Effect.map(({ scope }) =>
() => {
switch (options?.finalizerExecutionMode ?? "sync") {
switch (options?.finalizerExecutionMode ?? "fork") {
case "sync":
Runtime.runSync(runtime)(Scope.close(scope, Exit.void))
break