Async++ unknown
Async (co_await/co_return) code for C++
Loading...
Searching...
No Matches
stop_token.h File Reference

Polyfill implementation of std::stop_token and friends. Check the documentation of the stl version for details. More...

#include <version>
#include <stop_token>
Include dependency graph for stop_token.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ASYNCPP_FORCE_CUSTOM_STOP_TOKEN   0
 Force Asyncpp to use its polyfill implementation of std::stop_token even if the stl provides one.
 

Typedefs

using asyncpp::stop_source = std::stop_source
 
using asyncpp::stop_token = std::stop_token
 
template<typename Callback >
using asyncpp::stop_callback = std::stop_callback<Callback>
 
using asyncpp::nostopstate_t = std::nostopstate_t
 

Variables

constexpr nostopstate_t asyncpp::nostopstate {}
 

Detailed Description

Polyfill implementation of std::stop_token and friends. Check the documentation of the stl version for details.