Skip to content

Commit

Permalink
[Concurrency] Add missing 5.9 addTasks for DiscardingTaskGroups to gyb
Browse files Browse the repository at this point in the history
  • Loading branch information
ktoso committed Feb 25, 2025
1 parent 985b2e8 commit 3dfedf6
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion stdlib/public/Concurrency/TaskGroup+addTask.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,35 @@ import Swift
% # -----------------------------------------------------------------------
% # === Baseline
% (
% '!SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY',
% '', # no #if
% [
% 'TaskGroup',
% 'ThrowingTaskGroup',
% ],
% [
% '@available(SwiftStdlib 5.1, *)',
% '#if SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY',
% '@available(*, unavailable, message: "Unavailable in task-to-thread concurrency model", renamed: "addTask(operation:)")',
% '#endif',
% ],
% ['addTask', 'addTaskUnlessCancelled'],
% [
% 'priority: TaskPriority? = nil',
% # throws and ChildTaskResult will be adjusted per task group type
% 'operation: sending @escaping @isolated(any) () async throws -> ChildTaskResult'
% ],
% ),
% (
% '', # no #if
% [
% 'DiscardingTaskGroup',
% 'ThrowingDiscardingTaskGroup',
% ],
% [
% '@available(SwiftStdlib 5.9, *)',
% '#if SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY',
% '@available(*, unavailable, message: "Unavailable in task-to-thread concurrency model", renamed: "addTask(operation:)")',
% '#endif',
% ],
% ['addTask', 'addTaskUnlessCancelled'],
% [
Expand Down

0 comments on commit 3dfedf6

Please sign in to comment.