demo: support async context on browser

This commit is contained in:
Alex Yang
2025-07-10 17:20:40 -07:00
parent f1f7954083
commit 00a8046897
+1 -1
View File
@@ -15,8 +15,8 @@ const stopEvent = workflowEvent<string>();
const workflow = createWorkflow();
workflow.handle([startEvent], () => {
const context = getContext();
setTimeout(() => {
const context = getContext();
context.sendEvent(stopEvent.with("Hello, World!"));
}, 1000);
});