java.lang.Object
io.qt.core.QFuture<T>
Represents the result of an asynchronous computation
Java wrapper for Qt class QFuture
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSimilar toConsumerbut potentially throwing exception.static interfaceSimilar toFunctionbut potentially throwing exception.static interfaceSimilar toConsumerbut potentially throwing exception.static interfaceSimilar toFunctionbut potentially throwing exception.static interfaceSimilar toRunnablebut potentially throwing exception.static interfaceSimilar toSupplierbut potentially throwing exception. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcancel()clone()booleanbooleaninthashCode()final booleanfinal booleanfinal booleanisPaused()Deprecated, for removal: This API element is subject to removal in a future version.Use isSuspending() or isSuspended() instead.final booleanisResultReadyAt(int resultIndex) final booleanfinal booleanfinal booleanfinal booleaniterator()onCanceled(QObject context, QFuture.Runnable function) onCanceled(QObject context, QFuture.Supplier<T> function) onCanceled(QFuture.Runnable function) onCanceled(QFuture.Supplier<T> function) onFailed(QObject context, QFuture.Consumer<Throwable> function) onFailed(QObject context, QFuture.Function<Throwable, T> function) onFailed(QObject context, QFuture.Runnable function) onFailed(QObject context, QFuture.Supplier<T> function) onFailed(QObject context, Class<Failure> exceptionType, QFuture.Consumer<Failure> function) onFailed(QObject context, Class<Failure> exceptionType, QFuture.Function<Failure, T> function) onFailed(QObject context, Class<Failure> exceptionType, QFuture.Runnable function) onFailed(QObject context, Class<Failure> exceptionType, QFuture.Supplier<T> function) onFailed(QFuture.Consumer<Throwable> function) onFailed(QFuture.Function<Throwable, T> function) onFailed(QFuture.Runnable function) onFailed(QFuture.Supplier<T> function) onFailed(Class<Failure> exceptionType, QFuture.Consumer<Failure> function) onFailed(Class<Failure> exceptionType, QFuture.Function<Failure, T> function) onFailed(Class<Failure> exceptionType, QFuture.Runnable function) onFailed(Class<Failure> exceptionType, QFuture.Supplier<T> function) final voidpause()Deprecated, for removal: This API element is subject to removal in a future version.Use suspend() instead.final intfinal intfinal Stringfinal intfinal Tresult()final TresultAt(int index) final intresults()final voidresume()final voidsetPaused(boolean paused) Deprecated, for removal: This API element is subject to removal in a future version.Use setSuspended() instead.final voidsetSuspended(boolean suspended) final voidsuspend()then(QThreadPool pool, QFuture.Consumer<T> function) <R> QFuture<R>then(QThreadPool pool, QFuture.Function<T, R> function) then(QThreadPool pool, QFuture.FutureConsumer<T> function) <R> QFuture<R>then(QThreadPool pool, QFuture.FutureFunction<T, R> function) then(QThreadPool pool, QFuture.Runnable function) <R> QFuture<R>then(QThreadPool pool, QFuture.Supplier<R> function) then(QObject context, QFuture.Consumer<T> function) <R> QFuture<R>then(QObject context, QFuture.Function<T, R> function) then(QObject context, QFuture.FutureConsumer<T> function) <R> QFuture<R>then(QObject context, QFuture.FutureFunction<T, R> function) then(QObject context, QFuture.Runnable function) <R> QFuture<R>then(QObject context, QFuture.Supplier<R> function) then(QFuture.Consumer<T> function) <R> QFuture<R>then(QFuture.Function<T, R> function) then(QFuture.FutureConsumer<T> function) <R> QFuture<R>then(QFuture.FutureFunction<T, R> function) then(QFuture.Runnable function) <R> QFuture<R>then(QFuture.Supplier<R> function) then(QtFuture.Launch policy, QFuture.Consumer<T> function) <R> QFuture<R>then(QtFuture.Launch policy, QFuture.Function<T, R> function) then(QtFuture.Launch policy, QFuture.FutureConsumer<T> function) <R> QFuture<R>then(QtFuture.Launch policy, QFuture.FutureFunction<T, R> function) then(QtFuture.Launch policy, QFuture.Runnable function) <R> QFuture<R>then(QtFuture.Launch policy, QFuture.Supplier<R> function) final voidDeprecated, for removal: This API element is subject to removal in a future version.Use toggleSuspended() instead.final void<U> QFuture<U>final voidMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QFuture
public QFuture() -
QFuture
-
-
Method Details
-
cancel
-
isCanceled
-
isFinished
-
isPaused
Deprecated, for removal: This API element is subject to removal in a future version.Use isSuspending() or isSuspended() instead. -
isSuspended
-
isSuspending
-
isResultReadyAt
-
isRunning
-
isStarted
-
pause
Deprecated, for removal: This API element is subject to removal in a future version.Use suspend() instead.See QFuture::pause()
-
suspend
-
progressMaximum
-
progressMinimum
-
progressText
-
progressValue
-
result
-
resultAt
-
resultCount
-
results
-
resume
-
setPaused
@Deprecated(forRemoval=true, since="Qt 6.0") @QtUninvokable public final void setPaused(boolean paused) Deprecated, for removal: This API element is subject to removal in a future version.Use setSuspended() instead. -
setSuspended
-
togglePaused
Deprecated, for removal: This API element is subject to removal in a future version.Use toggleSuspended() instead. -
toggleSuspended
-
waitForFinished
-
iterator
-
equals
-
equals
-
hashCode
-
clone
-
then
-
then
-
then
-
then
-
then
-
then
@QtUninvokable public <R> QFuture<R> then(QtFuture.Launch policy, QFuture.FutureFunction<T, R> function) -
then
-
then
-
then
-
then
-
then
-
then
-
then
-
then
-
then
@QtUninvokable public QFuture<Void> then(QtFuture.Launch policy, QFuture.FutureConsumer<T> function) -
then
-
then
-
then
-
onFailed
-
onFailed
-
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<T> onFailed(Class<Failure> exceptionType, QFuture.Function<Failure, T> function) -
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<Void> onFailed(Class<Failure> exceptionType, QFuture.Runnable function) -
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<T> onFailed(Class<Failure> exceptionType, QFuture.Supplier<T> function) -
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<Void> onFailed(Class<Failure> exceptionType, QFuture.Consumer<Failure> function) -
onFailed
-
onFailed
-
onCanceled
-
onCanceled
-
then
-
then
-
then
-
then
-
then
-
then
-
onFailed
-
onFailed
-
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<Void> onFailed(QObject context, Class<Failure> exceptionType, QFuture.Runnable function) -
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<T> onFailed(QObject context, Class<Failure> exceptionType, QFuture.Supplier<T> function) -
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<T> onFailed(QObject context, Class<Failure> exceptionType, QFuture.Function<Failure, T> function) -
onFailed
-
onFailed
-
onFailed
@QtUninvokable public <Failure extends Throwable> QFuture<Void> onFailed(QObject context, Class<Failure> exceptionType, QFuture.Consumer<Failure> function) -
onCanceled
-
onCanceled
-
unwrap
-