mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Concurrency] Cancelled group should only spawn already cancelled tasks
This commit is contained in:
@@ -508,6 +508,10 @@ void TaskGroup::offer(AsyncTask *completedTask, AsyncContext *context) {
|
||||
asImpl(this)->offer(completedTask, context);
|
||||
}
|
||||
|
||||
bool TaskGroup::isCancelled() {
|
||||
return asImpl(this)->isCancelled();
|
||||
}
|
||||
|
||||
static void fillGroupNextResult(TaskFutureWaitAsyncContext *context,
|
||||
PollResult result) {
|
||||
/// Fill in the result value
|
||||
|
||||
Reference in New Issue
Block a user