xtd 0.2.0
Loading...
Searching...
No Matches

◆ cancellation_token()

xtd::threading::cancellation_token::cancellation_token ( bool  canceled)

Initializes the xtd::threading::cancellation_token.

Parameters
canceledThe canceled state for the token.
Remarks
Tokens created with this constructor will remain in the canceled state specified by the canceled parameter. If canceled is false, both xtd::threading::cancellation_token::can_be_canceled and xtd::threading::cancellation_token::is_cancellation_requested will be false.
If canceled is true, both xtd::threading::cancellation_token::can_be_canceled and xtd::threading::cancellation_token::is_cancellation_requested will be true.