// A promise passed INTO a helper and awaited there. The helper is inlined at its call // site, so the barrier lands at the right point in time; the awaited expression is a // parameter, which issues nothing, so it widens exactly like a stored promise. The // trailing ask is what makes the widened barrier visible as a `maybe` edge. async function settle(p: Node): Promise { return await p; } const worker = agent("worker"); const pending = worker.ask("work"); const other = await agent("other").ask("other"); const done = await settle(pending); const summary = await agent("summarizer").ask("wrap up"); return `${done} ${other} ${summary}`;