Actor Reentrancy in Swift explained

  Рет қаралды 1,145

donny wals

donny wals

Күн бұрын

In this video we'll explore a complicated topic called actor reentrancy. You'll find out why adding async methods to your actors can yield unexpected and undesired results. You'll also learn about one possible way to solve a specific form of actor reentrancy that leverages caching unstructured Tasks.
This video is a companion for my blog post on the same topic: www.donnywals.com/actor-reent...
Learn about atomicity in programing here: www.donnywals.com/what-does-a...

Пікірлер: 6
@srinivasanmunna
@srinivasanmunna 2 ай бұрын
This is a great one. I was actually expecting to see another dictionary variable that keeps track of running tasks. But the enum with associated type looks so much better.
@DonnyWalsdev
@DonnyWalsdev 2 ай бұрын
Thanks!
@0xifarouk
@0xifarouk 2 ай бұрын
This is amazing, thank you for the explanation 🙏🏻 Can we have a video on task cancellation please?
@DonnyWalsdev
@DonnyWalsdev 2 ай бұрын
Noted!
@filmaniac1984
@filmaniac1984 2 ай бұрын
Thanks @DonnyWalsdev! Great example and well explained.
@JumpingCow
@JumpingCow 2 ай бұрын
Subtle and complex! Thank you.
Building an AsyncSequence with AsyncStream.makeStream
14:14
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 156 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 114 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 14 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
Comparing @Observable to ObservableObjects in SwiftUI
12:57
donny wals
Рет қаралды 1,2 М.
Threads in Rust: Parallel Computing
3:03
Rust without rust
Рет қаралды 880
What is asynchronous JavaScript code? 💤
4:48
Bro Code
Рет қаралды 12 М.
What is the Sendable protocol in Swift? | Swift Concurrency #11
17:09
Swiftful Thinking
Рет қаралды 11 М.
How to decide between a Set and an Array in Swift?
6:58
donny wals
Рет қаралды 278
Your Brain 🧠 on Swift Concurrency - iOS Conf SG 2023
30:38
iOS Conf SG
Рет қаралды 8 М.
3 MISTAKES to avoid when using Async / Await in Swift 😌
4:41
Vincent Pradeilles
Рет қаралды 10 М.
How to use Actors and non-isolated in Swift  | Swift Concurrency #9
29:31
Swiftful Thinking
Рет қаралды 17 М.
Черешня из Китая размером с КУЛАК: На стероидах?
0:12
Собиратель новостей
Рет қаралды 6 МЛН
СДЕЛАЛА СТАКАНЫ ИЗ БУТЫЛОК😃🍸
0:46
polya_tut
Рет қаралды 10 МЛН
Дарю Самокат Скейтеру !
0:42
Vlad Samokatchik
Рет қаралды 1,2 МЛН
Как красиво снять полет #marim #shortsvideo
0:15
РИСКОВЫЙ ШКОЛЬНИК На велосипеде #shorts
0:15
Леха МАК
Рет қаралды 7 МЛН