I'm hoping there will be a simpler way to write the `retry` loop - something like: ``` auto op = ex::connect([_sender = s]() -> ex::receiver { auto value= co_await _sender; while (!value) value = co_await _sender; co_return *value; }, sink); ```
-
-
-
We could and will provide higher-level algorithms and interop with coroutines. It's interesting to think about what algos would make `retry` simpler. `retry` is interesting because it needs to distinguish "error" from "cancel" and react differently.
- Još 5 drugih odgovora
Novi razgovor -
-
-
I've been writing C++ since the early 90s so it's a little difficult to look with fresh eyes but... Imagine you're an experienced programmer, curious about C++ and just saw this post. I don't think your reaction is good.
-
Fair. I should have provided context. These are low-level abstractions. I'm not expecting many people to write generic async algorithms to this interface. My point merely is that efficient generic async algorithms are /possible/ with these abstractions, and that's new.
- Još 3 druga odgovora
Novi razgovor -
-
-
Will the new design of futures then allow to realise a split? So continuations into two or more directions for copyable values? Futures in http://stlab.com by
@SeanParent,@phostershop and me support this. I would miss this kind symmetry in respect to merge of futures. -
Futures like those in stlab are something that can be built on top of these abstractions.
- Još 1 odgovor
Novi razgovor -
-
-
A bit more context would have been great, for a curious amateur like me
-
Shameless plug because there isn't a lot of documentation out there yet https://cor3ntin.github.io/posts/executors/ … Or better yet
@ericniebler 's cppcon talkhttps://youtu.be/tF-Nz4aRWAM
Kraj razgovora
Novi razgovor -
-
-
This is very elegant. So excited about this initiative.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.