[Concurrency] Cancelled group should only spawn already cancelled tasks

This commit is contained in:
Konrad `ktoso` Malawski
2021-06-24 08:28:05 +09:00
parent 11e3a652df
commit dd10132b12
5 changed files with 21 additions and 10 deletions

View File

@@ -39,6 +39,9 @@ public:
/// Upon a future task's completion, offer it to the task group it belongs to.
void offer(AsyncTask *completed, AsyncContext *context);
/// Checks the cancellation status of the group.
bool isCancelled();
};
} // end namespace swift