Workflow.sleepUntil()
The .sleepUntil()
method pauses execution until a specified date.
Usage
workflow.sleepUntil(new Date(Date.now() + 1000));
Parameters
date:
Date
The date until which to pause execution
Returns
workflow:
Workflow
The workflow instance for method chaining