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=default
 
 CancelHandle (function< void()> cancel)
 
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

ndn::detail::CancelHandle::CancelHandle ( )
defaultnoexcept
ndn::detail::CancelHandle::CancelHandle ( function< void()>  cancel)
explicit

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

Member Function Documentation

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

Cancel the operation.

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