Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::FailureHandler< Function, ResultType > Class Template Reference

#include <qfuture_impl.h>

+ Collaboration diagram for QtPrivate::FailureHandler< Function, ResultType >:

Public Member Functions

template<typename F = Function>
 FailureHandler (F &&func, const QFuture< ResultType > &f, QPromise< ResultType > &&p)
 
void run ()
 

Static Public Member Functions

template<typename F = Function>
static void create (F &&function, QFuture< ResultType > *future, const QFutureInterface< ResultType > &fi)
 
template<typename F = Function>
static void create (F &&function, QFuture< ResultType > *future, QFutureInterface< ResultType > &fi, QObject *context)
 

Detailed Description

template<class Function, class ResultType>
class QtPrivate::FailureHandler< Function, ResultType >

Definition at line 384 of file qfuture_impl.h.

Constructor & Destructor Documentation

◆ FailureHandler()

template<class Function , class ResultType >
template<typename F = Function>
QtPrivate::FailureHandler< Function, ResultType >::FailureHandler ( F && func,
const QFuture< ResultType > & f,
QPromise< ResultType > && p )
inline

Definition at line 396 of file qfuture_impl.h.

Member Function Documentation

◆ create() [1/2]

template<class Function , class ResultType >
template<class F >
void QtPrivate::FailureHandler< Function, ResultType >::create ( F && function,
QFuture< ResultType > * future,
const QFutureInterface< ResultType > & fi )
static

Definition at line 682 of file qfuture_impl.h.

References future, and Q_ASSERT.

◆ create() [2/2]

template<class Function , class ResultType >
template<class F >
void QtPrivate::FailureHandler< Function, ResultType >::create ( F && function,
QFuture< ResultType > * future,
QFutureInterface< ResultType > & fi,
QObject * context )
static

Definition at line 700 of file qfuture_impl.h.

References context, future, Q_ASSERT, and QtPrivate::watchContinuation().

+ Here is the call graph for this function:

◆ run()

template<class Function , class ResultType >
void QtPrivate::FailureHandler< Function, ResultType >::run ( )

Definition at line 717 of file qfuture_impl.h.

References QtPrivate::fulfillPromise(), and Q_ASSERT.

+ Here is the call graph for this function:

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