Skip to main content
Version: 24.38.0

Process.waitForLineOutput() 方法

🌐 Process.waitForLineOutput() method

语法

🌐 Signature

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

参数

🌐 Parameters

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

regex

RegExp

timeout

number

(可选)

🌐 (Optional)

返回:

Promise<string>