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 {
5353func int( ) async -> Int { 42 }
5454
5555func 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: {
5757 await int ( )
5858 } )
5959}
6060
6161func 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) {
6463 await int ( )
6564 }
6665}
You can’t perform that action at this time.
0 commit comments