The AsyncTask.
More...
#include <async.hpp>
|
using | result_type = typename std::invoke_result_t< Callable, Args... > |
|
using | signal_type = typename Impl::AsyncSignal< HasSignal, result_type >::type |
|
using | invoker_type = typename Impl::AsyncInvoker< HasSignal, Callable, Args... > |
|
|
| AsyncTask (Callable &&callable, Args &&...args) |
|
| AsyncTask (AsyncTask &&task) |
|
| AsyncTask (const AsyncTask &)=delete |
|
void | lauch (Lauch lauch=Lauch::Async) |
| Lauch the asyn task. More...
|
|
signal_type * | operator-> () const noexcept |
| a use full operator to connect signal More...
|
|
template<bool HasSignal, class Callable, class ... Args>
class Btk::AsyncTask< HasSignal, Callable, Args >
The AsyncTask.
- Template Parameters
-
HasSignal | If the task has signal |
Callable | The callable type |
Args | The args type |
◆ lauch()
template<bool HasSignal, class Callable , class ... Args>
void Btk::AsyncTask< HasSignal, Callable, Args >::lauch |
( |
Lauch |
lauch = Lauch::Async | ) |
|
|
inline |
Lauch the asyn task.
- Parameters
-
◆ operator->()
template<bool HasSignal, class Callable , class ... Args>
signal_type* Btk::AsyncTask< HasSignal, Callable, Args >::operator-> |
( |
| ) |
const |
|
inlinenoexcept |
a use full operator to connect signal
- Note
- It only useable only it has signal
- Returns
- The signal or void*(NoSignal)
The documentation for this class was generated from the following file: