swift
Loading...
Searching...
No Matches
promise.h File Reference

Go to the source code of this file.

Classes

class  swift::misc::CPromise< T >
 A promise-based interface to QFuture, similar to std::promise for std::future. More...
class  swift::misc::CPromise< void >
 Specialization of CPromise for void futures. More...

Namespaces

namespace  swift::misc
 Free functions in swift::misc.

Functions

template<typename T, typename F>
void swift::misc::doAfter (QFuture< T > future, QObject *context, F &&func)
 Connect a slot or function to be invoked in the given context when a QFuture is finished.
template<typename F>
void swift::misc::doAfter (QFuture< void > future, QObject *context, F &&func)
 Connect a slot or function to be invoked in the given context when a void QFuture is finished.