Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
cancellation_token Class Reference

#include <task.hpp>

Public Member Functions

template<typename F>
cancellation_token_registration register_callback (F f) const
void deregister_callback (const cancellation_token_registration &token) const
bool is_cancelable () const
bool is_canceled () const

Static Public Member Functions

static cancellation_token none ()

Friends

class cancellation_token_source
bool operator== (const cancellation_token &x, const cancellation_token &y)

Detailed Description

Definition at line 151 of file task.hpp.

Member Function Documentation

◆ register_callback()

template<typename F>
cancellation_token_registration register_callback ( F f) const

Definition at line 154 of file task.hpp.

◆ deregister_callback()

void deregister_callback ( const cancellation_token_registration & token) const

Definition at line 158 of file task.hpp.

◆ is_cancelable()

bool is_cancelable ( ) const

Definition at line 163 of file task.hpp.

◆ is_canceled()

bool is_canceled ( ) const

Definition at line 166 of file task.hpp.

◆ none()

cancellation_token none ( )
static

Definition at line 168 of file task.hpp.

◆ cancellation_token_source

friend class cancellation_token_source
friend

Definition at line 175 of file task.hpp.

◆ operator==

bool operator== ( const cancellation_token & x,
const cancellation_token & y )
friend

Definition at line 170 of file task.hpp.