Question Details

No question body available.

Tags

boost-asio

Answers (1)

Accepted Answer Available
Accepted Answer
October 30, 2025 Score: 2 Rep: 401,227 Quality: High Completeness: 80%

Parallel-groups are move-only, so they assume unique ownership of the constituent async operations.

Therefore, there's no way to "return early" while not abandoning the rest.

However, this might be a good spot to use that promise. Then in the cancellation condition you can raise any signals that you need e.g. after some constituent task finished.

Live On Coliru

#include 
#include 
#include 
#include 
#include 

using namespace std::chrono_literals; namespace asio = boost::asio;

static inline auto& operator