Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

winrt::get_cancellation_token function (C++/WinRT)

In a coroutine, you can use the object returned by winrt::get_cancellation_token to poll for, or to respond to, cancellation. For more info, and code examples, see Canceling an asynchronous operation, and cancellation callbacks.

Syntax

inline winrt::get_cancellation_token_t get_cancellation_token() noexcept;

Requirements

Minimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)

Namespace: winrt

Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)

See also


Feedback

Was this page helpful?

Additional resources