Btk
Btk::AsyncTask< HasSignal, Callable, Args > Class Template Reference

The AsyncTask. More...

#include <async.hpp>

Public Types

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... >
 

Public Member Functions

 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...
 

Detailed Description

template<bool HasSignal, class Callable, class ... Args>
class Btk::AsyncTask< HasSignal, Callable, Args >

The AsyncTask.

Template Parameters
HasSignalIf the task has signal
CallableThe callable type
ArgsThe args type

Member Function Documentation

◆ 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
lauchLauch flag

◆ 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: