Skip to content

Commit f9f8321

Browse files
committed
[Concurrency] task executor overloads must not default the TE
1 parent 9791255 commit f9f8321

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ set(LLVM_OPTIONAL_SOURCES
208208
set(SWIFT_CONCURRENCY_GYB_SOURCES
209209
Task+init.swift.gyb
210210
TaskGroup+addTask.swift.gyb
211-
Task+immediate
211+
Task+immediate.swift.gyb
212212
)
213213

214214
add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB

stdlib/public/Concurrency/Task+init.swift.gyb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ import Swift
5454
% ],
5555
% [ # PARAMS
5656
% 'name: String? = nil',
57-
% 'executorPreference taskExecutor: (any TaskExecutor)? = nil',
57+
% 'executorPreference taskExecutor: (any TaskExecutor)?',
5858
% 'priority: TaskPriority? = nil',
59-
% # '@_inheritActorContext @_implicitSelfCapture operation: sending @escaping @isolated(any) () async throws -> Success',
6059
% 'operation: sending @escaping () async throws -> Success',
6160
% ]),
6261
% # ==== --------------------------------------------------------------------
@@ -70,7 +69,7 @@ import Swift
7069
% ],
7170
% [ # PARAMS
7271
% 'name: String? = nil',
73-
% 'executorPreference taskExecutor: (any TaskExecutor)? = nil',
72+
% 'executorPreference taskExecutor: (any TaskExecutor)?',
7473
% 'priority: TaskPriority? = nil',
7574
% 'operation: sending @escaping () async throws -> Success',
7675
% ]),

0 commit comments

Comments
 (0)