mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
add documentation for Task and ConcurrentTask
This commit is contained in:
@ -43,6 +43,10 @@
|
||||
|
||||
#include "tasks/Task.h"
|
||||
|
||||
/*!
|
||||
* Runs a list of tasks concurrently (according to `max_concurrent` parameter).
|
||||
* Behaviour is the same as regular Task (e.g. starts using start())
|
||||
*/
|
||||
class ConcurrentTask : public Task {
|
||||
Q_OBJECT
|
||||
public:
|
||||
@ -59,6 +63,7 @@ class ConcurrentTask : public Task {
|
||||
inline auto isMultiStep() const -> bool override { return totalSize() > 1; }
|
||||
auto getStepProgress() const -> TaskStepProgressList override;
|
||||
|
||||
//! Adds a task to execute in this ConcurrentTask
|
||||
void addTask(Task::Ptr task);
|
||||
|
||||
public slots:
|
||||
|
Reference in New Issue
Block a user