Skip to content

Commit f38d9f5

Browse files
Update README.md
1 parent a34c3c3 commit f38d9f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Luckily, *Legatus* was implemented with `Combine` framework and have couple of f
2020
* Reachability tracking.
2121
* Support JSON and XML response formats.
2222
* ***Combine*** extension.
23+
* ***Swift Concurrency*** support.
2324

2425
*Legatus* is inspired by [Moya](https://github.com/Moya/Moya).
2526

@@ -250,6 +251,16 @@ While working with SwiftUI, where most of UI updates based on *Combine* mechanis
250251
.store(in: &subscriptions)
251252
```
252253

254+
## Swift Concurrency Extension 🚦
255+
``` swift
256+
let httpBinApiClient = APIClient(baseURL: URL(string: "https://httpbin.org/")!)
257+
do {
258+
let httpBinGetResponse = try await httpBinApiClient.executeRequest(request: HttpBinGetRequest())
259+
} catch {
260+
// handle error
261+
}
262+
```
263+
253264
## Apps using Legatus 📱
254265

255266
- [PinPlace](https://apps.apple.com/ua/app/pinplace/id1571349149)

0 commit comments

Comments
 (0)