Skip to content

Commit 8fa35dc

Browse files
authored
Apply suggestions from code review
1 parent a27f65d commit 8fa35dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Using a combination of (a) `Task/startSynchronously`, (b) `Actor/assumeIsolated`
349349

350350
```swift
351351
func tryRunSynchronouslyOrAsynchronouslyOtherwise<T>(
352-
operation: sending @escaping @isolated(any) () async -> Success
352+
operation: sending @escaping () async -> Success
353353
) -> Task<Success, Failure> {
354354
guard let actor = operation.isolation else {
355355
// no specific isolation, just run async
@@ -377,7 +377,7 @@ Or even better we could build the same API with structured concurrency:
377377

378378
```swift
379379
func tryRunSynchronouslyOrAsynchronouslyOtherwise<T>(
380-
operation: sending @escaping @isolated(any) () async throws -> Success
380+
operation: sending @escaping () async throws -> Success
381381
) async rethrows -> Success { /* same, but use TaskGroup inside */ }
382382
```
383383

0 commit comments

Comments
 (0)