Signed-off-by: Casey Bodley <cbodley@redhat.com>
struct op_cancellation {
co_waiter* self;
+ op_cancellation(co_waiter* self) : self(self) {}
void operator()(boost::asio::cancellation_type_t type) {
if (type != boost::asio::cancellation_type::none) {
self->cancel();
struct op_cancellation {
co_waiter* self;
+ op_cancellation(co_waiter* self) : self(self) {}
void operator()(boost::asio::cancellation_type_t type) {
if (type != boost::asio::cancellation_type::none) {
self->cancel();