Skip to content

Commit e0cb825

Browse files
authored
Don't default the taskExecutor to avoid overload confusion
1 parent b925431 commit e0cb825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import Swift
5454
% ],
5555
% [ # PARAMS
5656
% 'name: String? = nil',
57-
% 'executorPreference taskExecutor: (any TaskExecutor)? = nil',
57+
% 'executorPreference taskExecutor: (any TaskExecutor)?',
5858
% 'priority: TaskPriority? = nil',
5959
% # '@_inheritActorContext @_implicitSelfCapture operation: sending @escaping @isolated(any) () async throws -> Success',
6060
% 'operation: sending @escaping () async throws -> Success',
@@ -70,7 +70,7 @@ import Swift
7070
% ],
7171
% [ # PARAMS
7272
% 'name: String? = nil',
73-
% 'executorPreference taskExecutor: (any TaskExecutor)? = nil',
73+
% 'executorPreference taskExecutor: (any TaskExecutor)?',
7474
% 'priority: TaskPriority? = nil',
7575
% 'operation: sending @escaping () async throws -> Success',
7676
% ]),

0 commit comments

Comments
 (0)