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

Function waitForBoot

e2e/setup/boot.ts:168–178  ·  view source on GitHub ↗
(
  processes: MonitoredBootedProcesses,
  ready: (signal: AbortSignal) => Promise<A>,
)

Source from the content-addressed store, hash-verified

166 * behind the full HTTP timeout nor leaves a polling timer alive.
167 */
168export const waitForBoot = async <A>(
169 processes: MonitoredBootedProcesses,
170 ready: (signal: AbortSignal) => Promise<A>,
171): Promise<A> => {
172 const controller = new AbortController();
173 try {
174 return await Promise.race([ready(controller.signal), processes.unexpectedExit]);
175 } finally {
176 controller.abort();
177 }
178};
179
180export const waitForHttp = async (
181 url: string,

Callers 5

bootCloudFunction · 0.90
bootCloudflareFunction · 0.90
bootMotelFunction · 0.90
bootSelfhostFunction · 0.90

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected