Skip to content

Commit f5ad687

Browse files
authored
Merge pull request #2850 from xedin/fix-code-in-se-0472
SE-0472: Add missing `()` to function type in `Task.immediate{Detached}` declarations
2 parents 5355577 + bb4248a commit f5ad687

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0472-task-start-synchronously-on-caller-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ extension Task {
107107
name: String? = nil, // Introduced by SE-0469
108108
priority: TaskPriority? = nil,
109109
executorPreference taskExecutor: consuming (any TaskExecutor)? = nil,
110-
@_inheritActorContext(always) operation: sending @escaping async throws(Failure) -> Success
110+
@_inheritActorContext(always) operation: sending @escaping () async throws(Failure) -> Success
111111
) -> Task<Success, Failure>
112112

113113
@discardableResult
114114
public static func immediateDetached(
115115
name: String? = nil, // Introduced by SE-0469
116116
priority: TaskPriority? = nil,
117117
executorPreference taskExecutor: consuming (any TaskExecutor)? = nil,
118-
@_inheritActorContext(always) operation: sending @escaping async throws(Failure) -> Success
118+
@_inheritActorContext(always) operation: sending @escaping () async throws(Failure) -> Success
119119
) -> Task<Success, Failure>
120120
}
121121
```

0 commit comments

Comments
 (0)