class QFutureInterfaceBase#

Synopsis#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

class State#
class CancelMode#

New in version 6.3.

__init__(other)#
Parameters:

otherQFutureInterfaceBase

__init__([initialState=QFutureInterfaceBase.State.NoState])
Parameters:

initialStateState

cancel(mode)#
Parameters:

modeCancelMode

cancel()
cancelAndFinish()#
cleanContinuation()#
derefT()#
Return type:

bool

expectedResultCount()#
Return type:

int

hasException()#
Return type:

bool

isCanceled()#
Return type:

bool

isChainCanceled()#
Return type:

bool

isFinished()#
Return type:

bool

isPaused()#
Return type:

bool

Note

This function is deprecated.

isProgressUpdateNeeded()#
Return type:

bool

isResultReadyAt(index)#
Parameters:

index – int

Return type:

bool

isRunning()#
Return type:

bool

isRunningOrPending()#
Return type:

bool

isStarted()#
Return type:

bool

isSuspended()#
Return type:

bool

isSuspending()#
Return type:

bool

isThrottled()#
Return type:

bool

isValid()#
Return type:

bool

launchAsync()#
Return type:

bool

loadState()#
Return type:

int

mutex()#
Return type:

QMutex

__ne__(other)#
Parameters:

otherQFutureInterfaceBase

Return type:

bool

__eq__(other)#
Parameters:

otherQFutureInterfaceBase

Return type:

bool

progressMaximum()#
Return type:

int

progressMinimum()#
Return type:

int

progressText()#
Return type:

str

progressValue()#
Return type:

int

queryState(state)#
Parameters:

stateState

Return type:

bool

refT()#
Return type:

bool

reportCanceled()#
reportFinished()#
reportResultsReady(beginIndex, endIndex)#
Parameters:
  • beginIndex – int

  • endIndex – int

reportStarted()#
reportSuspended()#
reset()#
resultCount()#
Return type:

int

rethrowPossibleException()#
runContinuation()#
setExpectedResultCount(resultCount)#
Parameters:

resultCount – int

setFilterMode(enable)#
Parameters:

enable – bool

setLaunchAsync(value)#
Parameters:

value – bool

setPaused(paused)#
Parameters:

paused – bool

Note

This function is deprecated.

setProgressRange(minimum, maximum)#
Parameters:
  • minimum – int

  • maximum – int

setProgressValue(progressValue)#
Parameters:

progressValue – int

setProgressValueAndText(progressValue, progressText)#
Parameters:
  • progressValue – int

  • progressText – str

setRunnable(runnable)#
Parameters:

runnableQRunnable

setSuspended(suspend)#
Parameters:

suspend – bool

setThreadPool(pool)#
Parameters:

poolQThreadPool

setThrottled(enable)#
Parameters:

enable – bool

suspendIfRequested()#
swap(other)#
Parameters:

otherQFutureInterfaceBase

threadPool()#
Return type:

QThreadPool

togglePaused()#

Note

This function is deprecated.

toggleSuspended()#
waitForFinished()#
waitForNextResult()#
Return type:

bool

waitForResult(resultIndex)#
Parameters:

resultIndex – int

waitForResume()#