Skip to main content
Version: 23.10.1

Process.waitForLineOutput() 方法

¥Process.waitForLineOutput() method

签名

¥Signature

class Process {
waitForLineOutput(regex: RegExp, timeout?: number): Promise<string>;
}

参数

¥Parameters

范围

类型

描述

regex

RegExp

timeout

数字

(可选的)

Returns:

Promise<string>