Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Executable > waitForExitAsync

Executable.waitForExitAsync() method

Wait for a child process to exit and return the result.

Signature:

static waitForExitAsync(childProcess: child_process.ChildProcess, options: IWaitForExitWithBufferOptions): Promise<IWaitForExitResult<Buffer>>;

Parameters

Parameter

Type

Description

childProcess

child_process.ChildProcess

The child process to wait for.

options

IWaitForExitWithBufferOptions

Options for waiting for the process to exit.

Returns:

Promise<IWaitForExitResult<Buffer>>