93 [[nodiscard]] auto
equals(const
object& obj) const noexcept ->
bool override;
114 friend class cancellation_token_source;
118 bool canceled =
false;
119 cancellation_token_source* token_source =
nullptr;
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
object()=default
Create a new instance of the ultimate base class object.
Signals to a xtd::threading::cancellation_token that it should be canceled.
Definition cancellation_token_source.hpp:38
auto can_be_canceled() const noexcept -> bool
Gets whether this token is capable of being in the canceled state.
auto get_hash_code() const noexcept -> xtd::size override
Serves as a hash function for a particular type.
auto throw_if_cancellation_requested() const -> void
Throws a xtd::operation_canceled_exception if this token has had cancellation requested.
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
auto is_cancellation_requested() const noexcept -> bool
Gets whether cancellation has been requested for this token.
auto wait_handle() noexcept -> threading::wait_handle &
Gets a xtd::threading::wait_handle that is signaled when the token is canceled.
auto equals(const object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
Represents a thread synchronization event that, when signaled, must be reset manually....
Definition manual_reset_event.hpp:35
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
sptr< type_t > new_sptr(args_t &&... args)
xtd::new_sptr operator creates a xtd::sptr object.
Definition new_sptr.hpp:24
@ other
The operating system is other.
Definition platform_id.hpp:60
Contains xtd::iequatable interface.
Contains xtd::threading::manual_reset_event exception.
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd fundamental types.