Dan Vrátil

Results 41 comments of Dan Vrátil

Hi Nicolas, after the changes in 0.4 and 0.5 - the library is modularized and everything returns `Task` - I think the API can now be considered stable, I don't...

After some initial designing, the `std::variant` for return type of `firstOf` will not work, as `firstOf(...)` would lead to `std::variant`, which is illegal. The code could fold it into `std::variant`,...

Not yet, I only have an experimental implementation of `allOf` (you can check the `feature/composition` branch).

The `&&` operator for `Task` is implemented on the `feature/composition` branch and should work (just needs some unit tests). I just didn't want to merge it without having the `||`...

It might be, but there are drawbacks as well - I created #107 with some brainstorming regarding cancellation.

Hi Jonah, adding the context to .then() makes sense, but I think it's not as simple as it sounds: ```cpp QCoro::Task task = gimmeTask(); const auto result = co_await task.then(someObject,...

The approach I outlined works (see https://gist.github.com/danvratil/4636d2dc1b174275eb2d4e4f22cf4c90), but only in Qt6 - in Qt5 we would need to register QCoro::Task to the metatype system, which doesn't really work (QCoro::Task is...

I'm no metatype wizard either, I knew this worked for Qt6, because I already did this PoC a while ago, but I only found out now it doesn't work in...

Thanks for adding the docs. Would you be willing to look into some basic tests? Otherwise I think it's OK to mark this as Ready for Review, so we can...

Looks like a Qt bug: https://bugreports.qt.io/browse/QTBUG-91768. I'm trying to reproduce on a Windows VM and build some minimal reproducer.