5#include "../core_export.hpp"
6#include "../iequatable.hpp"
7#include "../object.hpp"
16 class cancellation_token_source;
79 bool is_cancellation_requested() const noexcept;
99 void throw_if_cancellation_requested() const;
106 bool canceled_ = false;
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
Signals to a xtd::threading::cancellation_token that it should be canceled.
Definition cancellation_token_source.hpp:38
Propagates notification that operations should be canceled.
Definition cancellation_token.hpp:39
bool can_be_canceled() const noexcept
Gets whether this token is capable of being in the canceled state.
cancellation_token(bool canceled)
Initializes the xtd::threading::cancellation_token.
static cancellation_token none
Represents an empty xtd::threading::cancellation_token value.
Definition cancellation_token.hpp:48
Encapsulates operating system specific objects that wait for exclusive access to shared resources.
Definition wait_handle.hpp:52
#define core_export_
Define shared library export.
Definition core_export.hpp:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::threading::wait_handle exception.