Skip to content

Commit

Permalink
Merge pull request #2899 from cloudflare/sleepUntil
Browse files Browse the repository at this point in the history
Add sleepUntil in Workflow step functions
  • Loading branch information
sidharthachatterjee authored Oct 10, 2024
2 parents a023e8d + 487374d commit 1a71de8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/defines/rpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ declare module "cloudflare:workers" {
) => Promise<T>);

sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
};

export abstract class WorkflowEntrypoint<
Expand Down

0 comments on commit 1a71de8

Please sign in to comment.