From 181d9003fc51baa31d3178153c443cf129db92ba Mon Sep 17 00:00:00 2001 From: Piotr Date: Wed, 16 Oct 2024 11:43:27 +0200 Subject: [PATCH 1/3] Update SwiftConcurrency.md --- Documentation/SwiftConcurrency.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/SwiftConcurrency.md b/Documentation/SwiftConcurrency.md index 125079224..4c6c29424 100644 --- a/Documentation/SwiftConcurrency.md +++ b/Documentation/SwiftConcurrency.md @@ -66,7 +66,7 @@ stream.asObservable() ### Wrapping an `async` result as a `Single` -If you already have an async piece of work that returns a single result you wish to await, you can bridge it back to the Rx wordl by using `Single.create`, a special overload which takes an `async throws` closure where you can simply await your async work: +If you already have an async piece of work that returns a single result you wish to await, you can bridge it back to the Rx world by using `Single.create`, a special overload, available starting from RxSwift 6.8.0, which takes an `async throws` closure where you can simply await your async work. ```swift func doIncredibleWork() async throws -> AmazingRespones { @@ -77,3 +77,5 @@ let single = Single.create { try await doIncredibleWork() } // Single ``` + +This functionality is available starting from RxSwift 6.8.0. From aae832a6425c3b3caed1d28088b3314069f81beb Mon Sep 17 00:00:00 2001 From: Piotr Date: Wed, 16 Oct 2024 11:44:31 +0200 Subject: [PATCH 2/3] Update SwiftConcurrency.md --- Documentation/SwiftConcurrency.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/SwiftConcurrency.md b/Documentation/SwiftConcurrency.md index 4c6c29424..f78266235 100644 --- a/Documentation/SwiftConcurrency.md +++ b/Documentation/SwiftConcurrency.md @@ -77,5 +77,3 @@ let single = Single.create { try await doIncredibleWork() } // Single ``` - -This functionality is available starting from RxSwift 6.8.0. From 09eba14bcc2bec5c0103f14ccce4922d1d86a6df Mon Sep 17 00:00:00 2001 From: Piotr Date: Wed, 16 Oct 2024 11:52:57 +0200 Subject: [PATCH 3/3] Update SwiftConcurrency.md --- Documentation/SwiftConcurrency.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/SwiftConcurrency.md b/Documentation/SwiftConcurrency.md index f78266235..eca9012a8 100644 --- a/Documentation/SwiftConcurrency.md +++ b/Documentation/SwiftConcurrency.md @@ -66,7 +66,7 @@ stream.asObservable() ### Wrapping an `async` result as a `Single` -If you already have an async piece of work that returns a single result you wish to await, you can bridge it back to the Rx world by using `Single.create`, a special overload, available starting from RxSwift 6.8.0, which takes an `async throws` closure where you can simply await your async work. +If you already have an async piece of work that returns a single result you wish to await, you can bridge it back to the Rx world by using `Single.create`, a special overload, available starting from RxSwift 6.8.0, which takes an `async throws` closure where you can simply await your async work: ```swift func doIncredibleWork() async throws -> AmazingRespones {