Async/Await in Swift | Comparison vs Closures and Combine Framework

preview_player
Показать описание
Hello guys, Welcome to another video!

Today we will implement one of the new features introduced for Swift 5.5: Asynchronous functions. This will be possible by using the async/await syntax, let's see how we can refactor a code fully of closures and complicated error handling.

Content:
0:00 - Intro
0:31 - State of the art
1:21 - Asynchronous code using closures
8:25 - A lot of boilerplate code!
9:19 - What is async/ await solving?
10:11 - Async/Await in action
18:28 - Is it the end of Combine?
19:29 - Outro

------

------
Resources:

------
Other videos in the channel:

-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:

Finally, ask me for a video you would like to see next 😄!

Credits:
- Video edited with LumaFusion
Рекомендации по теме
Комментарии
Автор

...However, in some cases the system could sent it to another thread. <-- Correct. Use actors to prevent that. <-- this is a bit misleading. You don't use actors to prevent different threads, but to ensure only one thread accesses them at one time.

markph
Автор

Thanks for going over the old way and the new async await way. Super helpful for me.

ColeDano
Автор

Great video! I really liked the use of three difference approaches to the problem. async/wait looks much clean than Combine.

rodspears
Автор

brilliante, magnifico! excellent explanation of the topic !!!! you are a genius

気にしない-oq
Автор

Another excellent video that puts a new concept in context of current options which I find very helpful. 👍

gacastro
Автор

Thank you so much for the great demo Pitt 🤟🏻

rungxanh
Автор

Excellent video. What would be your guess as to when this feature will be available for production?

robmontesinos
Автор

In my code i am displaying the message on tableView in ios swift uikit using actor, the table view delegate methods will call synchronously but the data from actor isolated property i am getting using Task method with in that tableview delegates synchronous execution, now the problem is the tableview delegates method synchronous execution is not waiting for the Task method to wait, can any one suggest on this please

venusajja
Автор

This is a fantastic video, but I have one question. What would occur if I made an asynchronous request that took a while to receive a response, and in the meantime, I navigated back to the previous screen and wanted to cancel the unfinished request? How could I manage that situation?

VitorFerrazVarela
Автор

Should we cancel async await functions if we push another screen etc?

indomitabletr
Автор

great tutorial. Keep it up.

can you help me to create a sandBox tester account ? I am getting an error of "This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID."

jemmytech
Автор

Did you ever use "debounce" or "semaphore" in your network calls. ??

abdulwahabkhan
Автор

Hello sir, please make next tutorial on Method swizzling in swift

vaibhavshiledar
Автор

Swift 15.5 and let us introduce Channels 😂

jackdanyal