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

  Рет қаралды 10,118

Swift and Tips

Swift and Tips

Күн бұрын

Пікірлер: 32
@markph0204
@markph0204 3 жыл бұрын
...However, in some cases the system could sent it to another thread.
@swiftandtips
@swiftandtips 3 жыл бұрын
Hi Mark, you are right, actors protect your data against data races by multiple threads. What I meant is that with actos you can have a better control over what is getting access to your resource, but your point is absolutely valid. Sorry if that wasn’t clear enough.
@swiftandtips
@swiftandtips 3 жыл бұрын
By the way, I also talked about Actors in this video kzbin.info/www/bejne/bpvZpXt5ja9nhdk 😃
@markph0204
@markph0204 3 жыл бұрын
@@swiftandtips All good - I could have written my reply better too. ... but to ensure only one thread accesses the actor at one time. :-)
@ColeDano
@ColeDano 3 жыл бұрын
Thanks for going over the old way and the new async await way. Super helpful for me.
@rodspears
@rodspears 3 жыл бұрын
Great video! I really liked the use of three difference approaches to the problem. async/wait looks much clean than Combine.
@swiftandtips
@swiftandtips 3 жыл бұрын
Thank you @Rod! And I agree with you, async/await is much cleaner 👌
@gacastro
@gacastro 3 жыл бұрын
Another excellent video that puts a new concept in context of current options which I find very helpful. 👍
@swiftandtips
@swiftandtips 3 жыл бұрын
Thank you Gonzalo 😄🙌🏻
@気にしない-o8q
@気にしない-o8q Жыл бұрын
brilliante, magnifico! excellent explanation of the topic !!!! you are a genius
@swiftandtips
@swiftandtips Жыл бұрын
Thank you 🙏🙏
@Leopugpiano
@Leopugpiano 3 жыл бұрын
hey man, great content keep going!
@swiftandtips
@swiftandtips 3 жыл бұрын
Thank you @Leonardo! 😄
@rungxanh2901
@rungxanh2901 3 жыл бұрын
Thank you so much for the great demo Pitt 🤟🏻
@swiftandtips
@swiftandtips 3 жыл бұрын
Thank you @Joe 😃!
@indomitabletr1834
@indomitabletr1834 Жыл бұрын
Should we cancel async await functions if we push another screen etc?
@swiftandtips
@swiftandtips Жыл бұрын
Great question, if it’s inside a task modifier then the operation will be cancelled.
@venusajja7038
@venusajja7038 3 ай бұрын
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
@VitorFerrazVarela
@VitorFerrazVarela Жыл бұрын
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?
@swiftandtips
@swiftandtips Жыл бұрын
Great question Vitor, I would suggest to take a look to this post: www.hackingwithswift.com/quick-start/concurrency/how-to-cancel-a-task
@robmontesinos
@robmontesinos 3 жыл бұрын
Excellent video. What would be your guess as to when this feature will be available for production?
@swiftandtips
@swiftandtips 3 жыл бұрын
Hi @Roberto, once “iPhone 13” is announced, iOS 15 will be released along with Xcode 13 and there is when officially we can start using it for production. Normally this happens at most early Octubre. Thank you for your support! 😋
@roman3249
@roman3249 2 жыл бұрын
Awesome 🔥
@abdulwahabkhan4316
@abdulwahabkhan4316 Жыл бұрын
Did you ever use "debounce" or "semaphore" in your network calls. ??
@swiftandtips
@swiftandtips Жыл бұрын
Some time ago 👍
@jemmytech5474
@jemmytech5474 Жыл бұрын
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."
@swiftandtips
@swiftandtips Жыл бұрын
Hi Jemmy, I would need more context to guide you on this. What have you found on google?
@vaibhavshiledar
@vaibhavshiledar 3 жыл бұрын
Hello sir, please make next tutorial on Method swizzling in swift
@swiftandtips
@swiftandtips 3 жыл бұрын
Hi @Vaibhav, I will investigate about it. Thank you for the idea! 😁
@jackdanyal4329
@jackdanyal4329 3 жыл бұрын
Swift 15.5 and let us introduce Channels 😂
How do Actors work in Swift?
19:05
Swift and Tips
Рет қаралды 4,4 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Settling the Biggest Await Async Debate in .NET
14:47
Nick Chapsas
Рет қаралды 148 М.
Experimenting with async & await in Swift
15:50
Vincent Pradeilles
Рет қаралды 10 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Angular v19 Developer Event
22:54
Angular
Рет қаралды 75 М.
Swift Closures Explained - The ONLY video you'll ever need!
17:33
What is the Sendable protocol in Swift? | Swift Concurrency #11
17:09
Swiftful Thinking
Рет қаралды 15 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 724 М.
Introducing Clay - High Performance UI Layout in C
35:19
Nic Barker
Рет қаралды 209 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 24 М.