Skip to main content
Version: 24.38.0

WaitForTargetOptions 接口

🌐 WaitForTargetOptions interface

语法

🌐 Signature

export interface WaitForTargetOptions

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

signal

optional

AbortSignal

允许你取消 waitFor 调用的信号对象。

🌐 A signal object that allows you to cancel a waitFor call.

timeout

optional

number

最大等待时间(毫秒)。传入 0 可禁用超时。

🌐 Maximum wait time in milliseconds. Pass 0 to disable the timeout.

30_000