Skip to content

Packages  ›  trotsky  ›  StepWait  ›  (constructor)

StepWait.(constructor)

Initializes the StepWait instance with the given duration.

Signature:

typescript
constructor(agent: AtpAgent, parent: P, duration?: number);

Parameters

Parameter

Type

Description

agent

AtpAgent

The AT protocol agent used for API calls.

parent

P

The parent step in the chain.

duration

number

(Optional) The duration of the delay in milliseconds. Defaults to 0.