asio coroutines with stdexec #1237
-
I know that there is #1133 already, but it wasn't really answered. I was wondering if someone knows a way to combine stdexec's concepts and asio's e.g. could a sender be created from an asio::awaitable? I'm quite new to stdexec and trying to get my mental model in a place where I can use it in any form. So I'm sorry if my question is on a quite high level, but I would also be happy if someone could just give me an opinion of whether this could work and whether I still have to wait for P2855. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 12 replies
-
Do you ask for an asio completion token that makes asio functions return a sender? Iirc asio at least implemented some support for S&R (and deprecated it) but maintaining such a thing is difficult from the perspective of asio, because stdexec is a moving target. I think its a good suggestion to have something like this in this repo |
Beta Was this translation helpful? Give feedback.
-
I had some time and made a CompletionToken for asio here https://godbolt.org/z/61jznd7x7 |
Beta Was this translation helpful? Give feedback.
-
I would be thrilled to merge ASIO integration into stdexec. |
Beta Was this translation helpful? Give feedback.
-
Same request. There is a lot of code based on the asio ecosystem, such as asynchronous Redis client. I really don't want to reinvent the wheel myself. |
Beta Was this translation helpful? Give feedback.
Try this https://github.com/SamGaaWaa/asio2exec