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 37 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 43 of file cancel-handle.hpp.

Member Function Documentation

◆ cancel()

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

Cancel the operation.

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