Signed-off-by: Casey Bodley <cbodley@redhat.com>
allocator_type get_allocator() const noexcept {
return boost::asio::get_associated_allocator(handler);
}
+
+ using cancellation_slot_type = boost::asio::associated_cancellation_slot_t<Handler>;
+ cancellation_slot_type get_cancellation_slot() const noexcept {
+ return boost::asio::get_associated_cancellation_slot(handler);
+ }
};
} // namespace ceph::async
allocator_type get_allocator() const noexcept {
return boost::asio::get_associated_allocator(handler);
}
+
+ using cancellation_slot_type = boost::asio::associated_cancellation_slot_t<Handler>;
+ cancellation_slot_type get_cancellation_slot() const noexcept {
+ return boost::asio::get_associated_cancellation_slot(handler);
+ }
};
} // namespace ceph::async