java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QAbstractFuture
io.qt.core.QFuture<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
public final class QFuture<T> extends QAbstractFuture implements Iterable<T>, Cloneable
Represents the result of an asynchronous computation
Java wrapper for Qt class QFuture
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QFuture()
See QFuture::QFuture(QFutureInterface<T> p)
protected
QFuture(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description protected QIterator<T>
begin()
See QFuture::void
cancel()
See QFuture::QFuture<T>
clone()
protected QIterator<T>
end()
See QFuture::boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
boolean
isCanceled()
See QFuture::boolean
isFinished()
See QFuture::boolean
isPaused()
Deprecated.Use isSuspending() or isSuspended() instead.boolean
isResultReadyAt(int resultIndex)
See QFuture::boolean
isRunning()
See QFuture::boolean
isStarted()
See QFuture::boolean
isSuspended()
See QFuture::boolean
isSuspending()
See QFuture::boolean
isValid()
See QFuture::Iterator<T>
iterator()
QFuture<T>
onCanceled(Supplier<T> function)
QFuture<T>
onFailed(Function<Throwable,T> function)
void
pause()
Deprecated.Use suspend() instead.int
progressMaximum()
See QFuture::int
progressMinimum()
See QFuture::String
progressText()
See QFuture::int
progressValue()
See QFuture::T
result()
See QFuture::T
resultAt(int index)
See QFuture::int
resultCount()
See QFuture::QList<T>
results()
See QFuture::void
resume()
See QFuture::void
setPaused(boolean paused)
Deprecated.Use setSuspended() instead.void
setSuspended(boolean suspend)
See QFuture::void
suspend()
See QFuture::T
takeResult()
See QFuture::QVoidFuture
then(QtFuture.Launch policy, Consumer<QFuture<T>> function)
<R> QFuture<R>
then(QtFuture.Launch policy, Function<QFuture<T>,R> function)
QVoidFuture
then(QThreadPool pool, Consumer<QFuture<T>> function)
<R> QFuture<R>
then(QThreadPool pool, Function<QFuture<T>,R> function)
QVoidFuture
then(Consumer<QFuture<T>> function)
<R> QFuture<R>
then(Function<QFuture<T>,R> function)
void
togglePaused()
Deprecated.Use toggleSuspended() instead.void
toggleSuspended()
See QFuture::void
waitForFinished()
See QFuture::
-
Constructor Details
-
Method Details
-
begin
See QFuture::
-
cancel
See QFuture::
- Specified by:
cancel
in classQAbstractFuture
-
end
See QFuture::
-
isCanceled
See QFuture::
- Specified by:
isCanceled
in classQAbstractFuture
-
isFinished
See QFuture::
- Specified by:
isFinished
in classQAbstractFuture
-
isPaused
Deprecated.Use isSuspending() or isSuspended() instead.See QFuture::
- Specified by:
isPaused
in classQAbstractFuture
-
isResultReadyAt
See QFuture::
-
isRunning
See QFuture::
- Specified by:
isRunning
in classQAbstractFuture
-
isStarted
See QFuture::
- Specified by:
isStarted
in classQAbstractFuture
-
isSuspended
See QFuture::
-
isSuspending
See QFuture::
-
isValid
See QFuture::
-
pause
Deprecated.Use suspend() instead.See QFuture::
- Specified by:
pause
in classQAbstractFuture
-
progressMaximum
See QFuture::
- Specified by:
progressMaximum
in classQAbstractFuture
-
progressMinimum
See QFuture::
- Specified by:
progressMinimum
in classQAbstractFuture
-
progressText
See QFuture::
- Specified by:
progressText
in classQAbstractFuture
-
progressValue
See QFuture::
- Specified by:
progressValue
in classQAbstractFuture
-
result
See QFuture::
-
resultAt
See QFuture::
-
resultCount
See QFuture::
- Specified by:
resultCount
in classQAbstractFuture
-
results
See QFuture::
-
resume
See QFuture::
- Specified by:
resume
in classQAbstractFuture
-
setPaused
Deprecated.Use setSuspended() instead.See QFuture::
- Specified by:
setPaused
in classQAbstractFuture
-
setSuspended
See QFuture::
-
suspend
See QFuture::
-
takeResult
See QFuture::
-
togglePaused
Deprecated.Use toggleSuspended() instead.See QFuture::
- Specified by:
togglePaused
in classQAbstractFuture
-
toggleSuspended
See QFuture::
-
waitForFinished
See QFuture::
- Specified by:
waitForFinished
in classQAbstractFuture
-
iterator
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
then
-
then
@QtUninvokable public <R> QFuture<R> then(QtFuture.Launch policy, Function<QFuture<T>,R> function) -
then
-
then
-
then
-
then
-
onFailed
-
onCanceled
-
clone
- Specified by:
clone
in classQAbstractFuture
-