Functions

f
prelaunchPromise(): Promise<EarlyChrome | null>

The in-flight pre-launch, or a resolved null when startPrelaunch was never called or decided not to spawn (non-run command, --search, a daemon-routed run, non-chromium, or macOS — where the CI runner installs playwright's own headless shell and its path is not known this early).

f
shutdownPrelaunch(): Promise<void>

Kills the pre-launched Chrome process and awaits its async temp-dir cleanup. Must be called before process.exit() so the event loop is still alive and the async rm() inside spawn's close handler can run to completion. Safe to call multiple times or when Chrome was never pre-launched (no-op).

f
startPrelaunch(): void

Starts Chrome now, if this invocation is one that will need it.