Skip to main content

RunChildProcess.waitForExit()

Home > @backstage/cli-common > RunChildProcess > waitForExit

Waits for the child process to exit.

Signature:

waitForExit(): Promise<void>;

Returns:

Promise<void>

A promise that resolves when the process exits successfully or is terminated by a signal, or rejects on error.

Remarks

Resolves when the process exits successfully (exit code 0) or is terminated by a signal. If the process exits with a non-zero exit code, the promise is rejected with an ExitCodeError.