File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,6 @@ extension MainActor {
67
67
resultType: T . Type = T . self,
68
68
body: @MainActor @Sendable ( ) throws -> T
69
69
) async rethrows -> T {
70
- @MainActor func runOnMain( body: @MainActor @Sendable ( ) throws -> T ) rethrows -> T {
71
- return try body ( )
72
- }
73
-
74
- return try await runOnMain ( body: body)
70
+ return try await body ( )
75
71
}
76
72
}
Original file line number Diff line number Diff line change 50
50
// UNSUPPORTED: swift_evolve
51
51
52
52
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
53
+ Func MainActor.run(resultType:body:) has generic signature change from <T where T : Swift.Sendable> to <T>
53
54
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
You can’t perform that action at this time.
0 commit comments