Skip to content

Commit 274bba7

Browse files
Update README.md
1 parent fb2aac2 commit 274bba7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,11 @@ struct App: Application {
8484
post("/hello") { req in
8585
"Hello, \(req.query("name")!)!"
8686
}
87-
88-
// handlers can be async supported
89-
get("/download") { req in
90-
// Fetch an image from another site.
91-
try await Http.get("https://example.com/image.jpg")
92-
}
9387
}
9488
}
9589
```
9690

97-
Route handlers can also be async using Swift's new concurrency features.
91+
Route handlers can also be async using Swift 5.5's new concurrency features.
9892

9993
```swift
10094
get("/download") { req in

0 commit comments

Comments
 (0)