![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Go to the source code of this file.
Functions | |
| QString | s ("Hello, ") |
| [1] | |
| std::is_invocable_v< std::decay_t< Task >, std::decay_t< Args >... > QVariant | value (42) |
| [3] | |
| QString | result ("Hello, world!") |
| [5] | |
| QtConcurrent::task QString::chop withArguments result | spawn () .waitForFinished() |
| QtConcurrent::task([]{ qDebug("Hello, world!");}).spawn(FutureResult void | increment (QPromise< int > &promise, int i) |
| [10] | |
Variables | |
| auto | task = [](const QString &s){ qDebug() << ("Hello, " + s); } |
| [0] | |
| QtConcurrent::task( | future [](QString &s){ s.append("world!");}) .withArguments(std auto = QtConcurrent::task([]{ return 42; }).spawn() |
| [2] | |
| auto | result = future.result() |
| [6] | |
| CallableWithState | object |
| QThreadPool | pool |
| [8] | |
| QtConcurrent::task([]{ qDebug("Hello, world!");}).spawn(FutureResult void increment | ( | QPromise< int > & | promise, |
| int | i ) |
| QtConcurrent::task QString::chop withArguments result spawn | ( | ) |
[3]
[4] [4] [5]
| QtConcurrent::task ( future[](QString &s){ s.append("world!"); }) .withArguments(std auto = QtConcurrent::task([]{ return 42; }).spawn() |
| CallableWithState object |
Definition at line 65 of file src_concurrent_qtconcurrenttask.cpp.
| QThreadPool pool |
| int result = future.result() |