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

◆ wait_handle()

threading::wait_handle & xtd::threading::cancellation_token::wait_handle ( )
noexcept

Gets a xtd::threading::wait_handle that is signaled when the token is canceled.

Remarks
Accessing this property causes a xtd::threading::wait_handle to be instantiated. It is preferable to only use this property when necessary, and to then dispose the associated xtd::threading::cancellation_token_source instance at the earliest opportunity (disposing the source will dispose of this allocated handle). The handle should not be closed directly.