MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / waitForUnreachable

Function waitForUnreachable

apps/cli/src/daemon.ts:217–227  ·  view source on GitHub ↗
(input: {
  readonly check: Effect.Effect<boolean, E, R>;
  readonly timeoutMs: number;
  readonly intervalMs: number;
})

Source from the content-addressed store, hash-verified

215 });
216
217export const waitForUnreachable = <E, R>(input: {
218 readonly check: Effect.Effect<boolean, E, R>;
219 readonly timeoutMs: number;
220 readonly intervalMs: number;
221}): Effect.Effect<boolean, E, R> =>
222 waitForCondition({
223 check: input.check,
224 expected: false,
225 timeoutMs: input.timeoutMs,
226 intervalMs: input.intervalMs,
227 });
228
229const toProbeHost = (hostname: string): string => {
230 const normalized = hostname.trim().toLowerCase();

Callers 4

stopDaemonFunction · 0.90
runDaemonSessionFunction · 0.90

Calls 1

waitForConditionFunction · 0.85

Tested by

no test coverage detected