File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,13 @@ func test_cancellation_loop() async -> Int {
53
53
func int( ) async -> Int { 42 }
54
54
55
55
func test_cancellation_withDeadline_in( ) async throws -> Int {
56
- /* missing await */ Task . withDeadline ( in: . seconds( 5 ) , operation: { // FIXME: rdar://70751405 async rethrows functions are not detected as async
56
+ await Task . withDeadline ( in: . seconds( 5 ) , operation: {
57
57
await int ( )
58
58
} )
59
59
}
60
60
61
61
func test_cancellation_withDeadline( specificDeadline: Task . Deadline ) async -> Int {
62
- /* missing `await` */
63
- Task . withDeadline ( specificDeadline) { // FIXME: rdar://70751405 async rethrows functions are not detected as async
62
+ await Task . withDeadline ( specificDeadline) {
64
63
await int ( )
65
64
}
66
65
}
You can’t perform that action at this time.
0 commit comments