java.lang.Object
io.qt.core.QFuture<T>
Represents the result of an asynchronous computation
Java wrapper for Qt class QFuture
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Similar toConsumer
but potentially throwing exception.static interface
Similar toFunction
but potentially throwing exception.static interface
Similar toConsumer
but potentially throwing exception.static interface
Similar toFunction
but potentially throwing exception.static interface
Similar toRunnable
but potentially throwing exception.static interface
Similar toSupplier
but potentially throwing exception. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
cancel()
clone()
boolean
boolean
int
hashCode()
final boolean
final boolean
final boolean
isPaused()
Deprecated, for removal: This API element is subject to removal in a future version.Use isSuspending() or isSuspended() instead.final boolean
isResultReadyAt
(int resultIndex) final boolean
final boolean
final boolean
final boolean
iterator()
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 void
pause()
Deprecated, for removal: This API element is subject to removal in a future version.Use suspend() instead.final int
final int
final String
final int
final T
result()
final T
resultAt
(int index) final int
results()
final void
resume()
final void
setPaused
(boolean paused) Deprecated, for removal: This API element is subject to removal in a future version.Use setSuspended() instead.final void
setSuspended
(boolean suspended) final void
suspend()
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 void
Deprecated, for removal: This API element is subject to removal in a future version.Use toggleSuspended() instead.final void
<U> QFuture<U>
final void
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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
-