morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::model::HandlerResult< T > Struct Template Reference

The result an action handler's return type stands for: R for a core::async::Task<R> handler, the type itself for any other. More...

#include <task_handler.hpp>

Public Types

using type = T
 The action's result type.

Static Public Attributes

static constexpr bool isTask = false
 Whether the handler is a coroutine returning core::async::Task.

Detailed Description

template<typename T>
struct morph::model::HandlerResult< T >

The result an action handler's return type stands for: R for a core::async::Task<R> handler, the type itself for any other.

Template Parameters
TThe handler's return type.

Definition at line 34 of file task_handler.hpp.

Member Typedef Documentation

◆ type

template<typename T>
using morph::model::HandlerResult< T >::type = T

The action's result type.

Definition at line 36 of file task_handler.hpp.

Member Data Documentation

◆ isTask

template<typename T>
bool morph::model::HandlerResult< T >::isTask = false
staticconstexpr

Whether the handler is a coroutine returning core::async::Task.

Definition at line 38 of file task_handler.hpp.


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