We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8886bb7 commit d39145dCopy full SHA for d39145d
docs/v3/migration-defer.mdx
@@ -118,9 +118,9 @@ There will be a nice way to do this soon when you call `trigger()` but for now y
118
```ts
119
export const helloWorld = task({
120
id: "hello-world",
121
- run: async (payload: { delayUntil?: Date; delayForSeconds?: number }) => {
+ run: async (payload: { delayUntil?: string; delayForSeconds?: number }) => {
122
if (payload.delayUntil) {
123
- await wait.until({ date: payload.delayUntil });
+ await wait.until({ date: new Date(payload.delayUntil) });
124
}
125
126
if (payload.delayForSeconds) {
0 commit comments