11struct ASYNC_OPERATION_INSTANCE_TAG;
13namespace Azure {
namespace Core {
namespace Amqp {
namespace _internal {
14 class Cancellable final {
16 Cancellable(ASYNC_OPERATION_INSTANCE_TAG* asyncOperation) : m_operation{asyncOperation} {}
19 Cancellable(Cancellable
const&) =
delete;
20 Cancellable& operator=(Cancellable
const&) =
delete;
21 Cancellable(Cancellable&& that) noexcept : m_operation{that.m_operation}
23 that.m_operation =
nullptr;
25 Cancellable& operator=(Cancellable&& that)
noexcept
27 m_operation = that.m_operation;
28 that.m_operation =
nullptr;
35 ASYNC_OPERATION_INSTANCE_TAG* m_operation;