From f38d9f50489d0efd4094c935ffaf83cde17849f5 Mon Sep 17 00:00:00 2001 From: Artem Kalinovsky Date: Mon, 25 Apr 2022 18:30:40 +0200 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index a0b411b..ac97e8c 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Luckily, *Legatus* was implemented with `Combine` framework and have couple of f * Reachability tracking. * Support JSON and XML response formats. * ***Combine*** extension. +* ***Swift Concurrency*** support. *Legatus* is inspired by [Moya](https://github.com/Moya/Moya). @@ -250,6 +251,16 @@ While working with SwiftUI, where most of UI updates based on *Combine* mechanis .store(in: &subscriptions) ``` +## Swift Concurrency Extension 🚦 +``` swift + let httpBinApiClient = APIClient(baseURL: URL(string: "https://httpbin.org/")!) + do { + let httpBinGetResponse = try await httpBinApiClient.executeRequest(request: HttpBinGetRequest()) + } catch { + // handle error + } +``` + ## Apps using Legatus 📱 - [PinPlace](https://apps.apple.com/ua/app/pinplace/id1571349149)