注册并分享邀请链接,可获得视频播放与邀请奖励。

Karthik Kalyan
@karthikkalyan90
Building @workflowsdk @vercel ▲ • prev cofounder @langtrace_ai • ex @coinbase
加入 September 2009
2.2K 正在关注    2.4K 粉丝
@workflowsdk's Hook primitive lets external events control a running workflow. Let's take the email drip sequence example - welcome email, then nudges at day 2 and day 4. But what if the user completes the action before the nudges fire? You don't want to keep nagging them. The pattern you can use to solve this: Define a hook, then race it against each sleep. If the hook fires first, skip the remaining nudges. Any service in your app can resume the hook - it just needs the user's email as the token.
显示更多