You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be useful to have a timeout option, similar to wait.createToken from trigger.dev, so workflows can fail or continue gracefully when no callback arrives.
import{createWebhook}from"workflow";exportasyncfunctionwebhookWorkflow(){"use workflow";constwebhook=createWebhook({timeout: "10m",});constrequest=awaitwebhook;// throws or returns a timeout result after 10m}
Activity
TornjV commentedon Dec 7, 2025
Closing as the docs show how Promise.race(...) could be used for this use case.
Attaching as reference for anyone in future that might bump into something like this.
v2 bus: web-verify Vercel Workflows semantics against live docs — con…