En esta página

QtFuture::WhenAnyResult Struct

template <typename T> struct QtFuture::WhenAnyResult

QtFuture::WhenAnyResult se utiliza para representar el resultado de QtFuture::whenAny(). Más...

Cabecera: #include <WhenAnyResult>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Desde: Qt 6.3

Variables Públicas

QFuture<T> future
qsizetype index

Descripción Detallada

La estructura QtFuture::WhenAnyResult<T> se utiliza para empaquetar la copia y el índice del primer QFuture<T> completado en la secuencia de futuros de tipo empaquetado T que se pasan a QtFuture::whenAny().

Véase también QFuture y QtFuture::whenAny().

Documentación de variables miembro

QFuture<T> WhenAnyResult::future

El campo contiene la copia del primer QFuture completado que empaqueta el tipo T, donde T es el tipo empaquetado por los futuros pasados a whenAny().

Véase también QtFuture::whenAny().

qsizetype WhenAnyResult::index

El campo contiene el índice del primer QFuture completado en la secuencia de futuros pasados a whenAny(). Tiene el tipo qsizetype.

Véase también QtFuture::whenAny().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.