Thanks, Joel! It works as expected. I incorrectly assumed that opus 4.8 had tried exactly this approach (spawn_local) already. Probably it was never tested because I incorrectly insisted on a non-async create-interval (the only reason for async is the ability to spawn local tasks, not that the function semantic requires it).
Makes sense. I think the plan is to allow the sync lift ABI to use task.return (and thus allow post-return execution) as well, but that hasn't landed yet.
Christof Petig has marked this topic as resolved.
Last updated: Jul 29 2026 at 05:03 UTC