Nov

08

2021

Modern Concurrency in Swift: Introducing Async/Await, Task Groups & Actors

huayting 8 Nov 2021 08:17 LEARNING » e-book

Modern Concurrency in Swift: Introducing Async/Await, Task Groups & Actors
Modern Concurrency in Swift: Introducing Async/Await, Task Groups & Actors
Marin Todorov | 2021 | ISBN: 1950325539 | English | 273 pages | ePUB, PDF | 55 MB

Master Swift's new concurrency model! For years, writing powerful and safe concurrent apps with Swift could easily turn into a daunting task, full of race conditions and unexplained crashes hidden in a massive nesting of callback closures. In Swift 5.5, Apple introduced a new concurrency model featuring the async/await syntax, to let you write asynchronous code that reads like synchronous code. But like any new feature, here be dragons! So how will you achieve the much-desired mastery of Modern Swift Concurrency?

Master Swift's new concurrency model! For years, writing powerful and safe concurrent apps with Swift could easily turn into a daunting task, full of race conditions and unexplained crashes hidden in a massive nesting of callback closures. In Swift 5.5, Apple introduced a new concurrency model featuring the async/await syntax, to let you write asynchronous code that reads like synchronous code. But like any new feature, here be dragons! So how will you achieve the much-desired mastery of Modern Swift Concurrency?

The new concurrency model provides everything you need to write safe and performant programs in Swift, including:

• A new, native syntax for running asynchronous operations in a structured way.
• A bundle of standard APIs to design asynchronous and concurrent code.
• Low-level changes in the libdispatch framework, which make all the high-level changes integrate directly into the operating system.
• A new level of compiler support for creating safe, concurrent code.

Swift 5.5 introduces the new language syntax and APIs to support these features. In your apps, besides using a recent Swift version, you also need to target certain platform versions:

• If you're using Xcode 13.2 or newer, it will bundle the new concurrency runtime with your app so you can target iOS 13 and macOS 10.15 (for native apps).
• In case you're on Xcode 13 but earlier version than 13.2, you'll be able to target only iOS 15 or macOS 12 (or newer).

In the first chapter of the book, you'll review the new concurrency support in Swift and see how it fares compared to the existing APIs. Later, in the practical part of the chapter, you'll work on a real-life project by trying out the async/await syntax and adding some cool asynchronous error-handling. Modern Concurrency in Swift is here for the rescue, showcasing everything you need to know about async/await, tasks, actors, and everything in between!


PLEASE SUPPORT ME BY CLICK ONE OF MY LINKS IF YOU WANT BUYING OR EXTENDING YOUR ACCOUNT
https://uploadgig.com/file/download/4a797891C5052a6E/Artificial_Intelligence_for_Managers_Leverage_the_Power_of_AI_to_Transform_Organizations.epub
https://rapidgator.net/file/59deea0c1c9a95199da4fb048adc2b0b/Artificial_Intelligence_for_Managers_Leverage_the_Power_of_AI_to_Transform_Organizations.epub.html
https://nitro.download/view/568A58D16314D98/Artificial_Intelligence_for_Managers_Leverage_the_Power_of_AI_to_Transform_Organizations.epub

High Speed Download

Add Comment

  • People and smileys emojis
    Animals and nature emojis
    Food and drinks emojis
    Activities emojis
    Travelling and places emojis
    Objects emojis
    Symbols emojis
    Flags emojis