6.0.0-rc4Source

QtFuture::WhenAnyResult Struct

template <typename T> struct WhenAnyResult

The WhenAnyResult struct is the result of whenAny() on a range of futures. More…

Header#include <QtCore/qfuture_impl.h>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes

List of all members, including inherited members

Public Variables

qsizetypeindex
QFuture<T>future

Detailed Description

It holds the first future that finished and its position in the range.

Member Variable Documentation

QFuture<T> QtFuture::WhenAnyResult::future

The future that finished first.

qsizetype QtFuture::WhenAnyResult::index

The position of the future in the range.