java.lang.Object
io.qt.core.QFuture<T>
Represents the result of an asynchronous computation
Java wrapper for Qt class QFuture
-
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, Runnable function) onCanceled
(QObject context, Supplier<T> function) onCanceled
(Runnable function) onCanceled
(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()
<R> QFuture<R>
then
(QtFuture.Launch policy, Consumer<QFuture<T>> function) <R> QFuture<R>
then
(QtFuture.Launch policy, Function<QFuture<T>, R> function) then
(QThreadPool pool, Consumer<QFuture<T>> function) <R> QFuture<R>
then
(QThreadPool pool, Function<QFuture<T>, R> function) <R> QFuture<R>
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
-
onFailed
-
onCanceled
-
onFailed
-
onCanceled
-
then
-
then
-
onFailed
-
onCanceled
-
onFailed
-
onCanceled
-
unwrap
-