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 59d9ac6 commit ce81f1fCopy full SHA for ce81f1f
docs/guides/examples/replicate-image-generation.mdx
@@ -49,7 +49,7 @@ export const generateImageAndUploadToR2 = task({
49
webhook_events_filter: ["completed"],
50
});
51
52
- const result = await wait.forToken<Prediction>(token);
+ const result = await wait.forToken<Prediction>(token).unwrap();
53
// unwrap() throws a timeout error or returns the result 👆
54
55
if (!result.ok) {
0 commit comments