await step.delay('delay', async () => {
return {
unit: 'day',
amount: 1,
};
});
const { duration } = await step.delay('delay-1-week', resolver);
Step Outputs
This combined with the unit field determines the amount of time to digest
events for.
unit
Enum: 'seconds', 'minutes', 'hours', 'days', 'weeks', 'months'
required
The measurement unit for the amount field.
Step Result
The duration of the delay in milliseconds.