Название: Swift Concurrency by Example Автор: Pol Hudson Издательство: Independently published Год: 2022 Страниц: 187 Язык: английский Формат: pdf (true), epub Размер: 10.2 MB
Swift's powerful and flexible concurrency system includes async/await, tasks, actors, and more, but if you want to unleash its full power it's important you understand all the available choices and what sets them apart.
That's where Swift Concurrency by Example comes in: written as a series of tutorials, Swift Concurrency by Example guides you through dozens of common coding problems with hands-on solutions so you can spend less time wondering how to accomplish tasks and more time building your apps.
You might think this is a strange way to start a book, but: concurrency is a hard topic, and you might sometimes find yourself feeling a bit lost or a bit confused while you’re learning about it. I’m not saying that to put you off, or to make you feel somehow scared by all the topics we’re going to cover. In fact, my goal here is quite the opposite: I want you to know that everyone finds this stuff hard. If you ever feel like you’re struggling, it’s okay – it’s not you being stupid, it’s just plain difficult stuff.
It’s my goal to try to make this all as straightforward, understandable, and most importantly applicable as I can, so that anyone who is an intermediate to advanced Swift developer can apply these concepts to their projects immediately. If you’re a beginner developer you’re welcome to try following along, but honestly I would suggest you come back later – lots of theory isn’t likely to stay in your head unless you have the chance to actually apply it.
Our brains are inherently not built to work concurrently, and as a result it’s often hard to think about. So, one last time: this stuff is hard, and if you’re finding it hard it’s just a sign your brain is working correctly.
What's in the book? Dozens of common problems are solved in the book, including:
When to use async/await and when async let works better How to call the first async function in your project Upgrading your code to concurrency using continuations Creating custom async sequences and streams Running work in parallel using tasks and task groups Sleeping, suspending, and cancelling work Actors and actor inference
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.