update effect to 4.0.0-beta.42 (#19484)

This commit is contained in:
Kit Langton
2026-03-27 23:25:05 -04:00
committed by GitHub
parent f736116967
commit 43bc5551e8
4 changed files with 9 additions and 9 deletions

View File

@@ -183,7 +183,7 @@ function ConnectionGate(props: ParentProps<{ disableHealthCheck?: boolean }>) {
}
}).pipe(
effectMinDuration(checkMode() === "blocking" ? "1.2 seconds" : 0),
Effect.timeoutOrElse({ duration: "10 seconds", onTimeout: () => Effect.succeed(false) }),
Effect.timeoutOrElse({ duration: "10 seconds", orElse: () => Effect.succeed(false) }),
Effect.ensuring(Effect.sync(() => setCheckMode("background"))),
Effect.runPromise,
),

View File

@@ -336,7 +336,7 @@ export const make = Effect.gen(function* () {
if (Predicate.isUndefined(opts?.forceKillAfter)) return f(command, proc, signal)
return Effect.timeoutOrElse(f(command, proc, signal), {
duration: opts.forceKillAfter,
onTimeout: () => f(command, proc, "SIGKILL"),
orElse: () => f(command, proc, "SIGKILL"),
})
}