Repository navigation
Replies: 10 comments
|
I do not know why, but while I do not mind reusing popular names like |
|
I agree with Andrzej on |
Back to Long story short, @gubnik's |
You are right, yes. I was thinking about a potential API outside of Capy which could use an |
Ok, let's bikeshed
What it actually means is: an awaitable that accepts an environment; we could either just make that implicit and go for |
Looks like I would also like to add another name to the bikeshedding exercise. The docs use in a lot of places the term |
|
I like I'm ok with
|
I will just bring to your attention that it is a tuple, it is just an alias now. Maybe your suggestion is just to remove the alias? |
|
Updating this issue to the latest discussions on slack. IoAwaitable —> ContextAwaitable |
|
While at harmonizing names, I suggest that the naming around Because these "tags" could be shorter and have names corresponding to those used when passing the context: co_await get_await_context;
co_await get_await_context::allocator;
co_await get_await_context::executor;
co_await get_await_context::stop_token; |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Capy's viability goes beyond I/O. Many of our types are centered around I/O. Let's fix that.
Survey of the land:
Public types
Detail types (all in include/boost/capy/detail/io_result_combinators.hpp)
Outside the library (bench/example/test only)
IoAwaitable suggestions made:
I propose the simplification of the following type names:
capy::io_result<>->capy::resultcapy::io_env->capy::envFor
capy::io_task<...>we could just drop the alias. It would becapy::task< result<...> >The same pattern can be applied to
io_sender_env. (io_contextnot included, it is correct and Corosio's).Obviously
io_awaitable_basewill follow whatever we can decide on for theIoAwaitableconcept.Comment your thoughts and opinions!
All reactions