class QtConcurrent#

The QtConcurrent namespace provides high-level APIs that make it possible to write multi-threaded programs without using low-level threading primitives. More

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#

See the Qt Concurrent module documentation for an overview of available functions, or see below for detailed information on each function.

class FutureResult#

This enum type is used to invoke a special overload of spawn (QtConcurrent::FutureResult) that doesn’t return a future object.

Constant

Description

QtConcurrent.FutureResult.Ignore

An auxiliary tag which introduced to improve code readability.

class ThreadFunctionResult#
class ReduceOption#

(inherits enum.Flag) This enum specifies the order of which results from the map or filter function are passed to the reduce function.

Constant

Description

QtConcurrent.UnorderedReduce

Reduction is done in an arbitrary order.

QtConcurrent.OrderedReduce

Reduction is done in the order of the original sequence.

QtConcurrent.SequentialReduce

Reduction is done sequentially: only one thread will enter the reduce function at a time. (Parallel reduction might be supported in a future version of Qt Concurrent.)