You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Another problem of asynchronous programming is **error handling**, because Swift
30
30
31
31
####What about Rx and other such frameworks?
32
32
33
-
There are many other frameworks that make it easy to use asynchronous code, such as Combine, RxSwift, PromiseKit and so on. They use other approaches that have some drawbacks:
33
+
There are many other frameworks that make it easy to use asynchronous code, such as Combine, RxSwift, PromiseKit and so on.**They use other approaches** that have some drawbacks:
34
34
35
35
- Similar to callbacks, you also need to create chained calls, that’s why you can’t normally use loops, exception handling, etc.
36
36
- Usually you need to learn a complex new API with hundreds of methods.
@@ -41,7 +41,7 @@ There are many other frameworks that make it easy to use asynchronous code, such
41
41
42
42
The[async/await](https://en.wikipedia.org/wiki/Async/await) pattern is an alternative that allows an asynchronous, non-blocking function to be structured in a way similar to an ordinary synchronous function.
43
43
44
-
It is already well-established in other programming languages and is an evolution in asynchronous programming. The implementation of this pattern is possible thanks to coroutines.
44
+
It is already well-established in other programming languages and is an evolution in asynchronous programming. The implementation of this pattern is possible thanks to[coroutines](https://en.wikipedia.org/wiki/Coroutine).
45
45
46
46
Let’s have a look at the example with coroutine inside of which`await()` suspends it and resumes when the result is available without blocking the thread.