One and a half colors
One and a half colors
Posted Dec 3, 2025 9:58 UTC (Wed) by muase (subscriber, #178466)In reply to: One and a half colors by khim
Parent article: Zig's new plan for asynchronous programs
Could you elaborate what you mean with that? Because I have heavily used async within the embedded world, and I struggle to understand your point.
Async has two relevant API components: futures and wakers. As long as I implement a correct future, and use the provided opaque waker to wake the executor, I don’t see how my implementation has to match the executor?
And in my experience that works pretty well IRL; I have quite a few projects where I switched from my own executor to embassy, and two projects where I did vice versa, and I’ve never encountered any problems so far…
