Skip to content

Commit

Permalink
Fix typo in SwiftConcurrency.md (#2644)
Browse files Browse the repository at this point in the history
  • Loading branch information
chagmn authored Dec 7, 2024
1 parent 8932598 commit 68647db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/SwiftConcurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ 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 which takes an `async throws` closure where you can simply await your async work:

```swift
func doIncredibleWork() async throws -> AmazingRespones {
func doIncredibleWork() async throws -> AmazingResponse {
...
}

Expand Down

0 comments on commit 68647db

Please sign in to comment.