HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Static Public Attributes
hi::v1::cancel_features< Func, Args > Struct Template Reference

#include <hikogui/dispatch/async_task.hpp>

Static Public Attributes

static constexpr cancel_features_type value
 

Detailed Description

template<typename Func, typename... Args>
struct hi::v1::cancel_features< Func, Args >

Type trait to retrieve the cancel feautes of a invokable.

Template Parameters
FuncThe invocable to check.
ArgsThe arguments to the invocable.

Field Documentation

◆ value

template<typename Func , typename... Args>
constexpr cancel_features_type hi::v1::cancel_features< Func, Args >::value
staticconstexpr
Initial value:
=
std::is_invocable_v<Func, std::stop_token, ::hi::progress_token, Args...> ? cancel_features_type::stop_and_progress :
std::is_invocable_v<Func, ::hi::progress_token, Args...> ? cancel_features_type::progress :
std::is_invocable_v<Func, std::stop_token, Args...> ? cancel_features_type::stop :
@ none
This invocable does not have extra arguments.
@ stop_and_progress
The extra arguments are a std::stop_token, followed by a hi::progress_token.
@ progress
The extra argument is a hi::progress_token.
@ stop
The extra argument is a std::stop_token.
Token to pass to a function to report its progress.
Definition progress.hpp:23

The documentation for this struct was generated from the following file: