ndn::detail::CancelHandle Class Reference

Handle to cancel an operation. More...

#include <ndn-cxx/detail/cancel-handle.hpp>

+ Inheritance diagram for ndn::detail::CancelHandle:

Public Member Functions

 CancelHandle () noexcept
 
 CancelHandle (std::function< void()> cancel) noexcept
 
void cancel () const
 Cancel the operation. More...
 

Detailed Description

Handle to cancel an operation.

Definition at line 32 of file cancel-handle.hpp.

Constructor & Destructor Documentation

◆ CancelHandle() [1/2]

ndn::detail::CancelHandle::CancelHandle ( )
inlinedefaultnoexcept

◆ CancelHandle() [2/2]

ndn::detail::CancelHandle::CancelHandle ( std::function< void()>  cancel)
inlineexplicitnoexcept

Definition at line 38 of file cancel-handle.hpp.

Member Function Documentation

◆ cancel()

void ndn::detail::CancelHandle::cancel ( ) const

Cancel the operation.

Definition at line 28 of file cancel-handle.cpp.