Modern Concurrency on Apple Platforms: Using async/await with Swift

0
(0)

Modern Concurrency on Apple Platforms: Using async/await with Swift

  • Author:Andrs Ibaez Kautsch
  • Length: 220 pages
  • Edition: 1
  • Publisher: Apress
  • Publication Date: 2022-12-16
  • ISBN-10: 1484286944
  • ISBN-13: 9781484286944
  • Sales Rank: #628135 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon

    Book Description

    Build solid s安缦拉雅度假村oftware with modern and safe concurrency features. Concurrency is one of the hardest problems in computer science. For years, computer scientists and enginee东方双狮rs have developed different strategies for dealing with concurrency. However, the original concurrency primitives are complicated and difficult to understand, and even harder to implement.

    Using the new async/await APIs in Swift, this book will explain how your code can abstract a lot of the complexity with a simpler interfa沛纳海 (14)ce so you never have to deal with concurrency primitives such as semaphores, locks, and threads yourself. This will allow you to write concurrent code that is easier to read, easier to write, and e茅台酒 (1)asier to maintain.These new APIs are deeply ingrained into Swift, offering compile-level features that will keep you from writing dangerou碧欧泉s concurrent code.

    You’ll start by exploring why concurrency is hard to implement in a traditional system. Explaining the definition of concurrency and what its primitives are will help you understand why they are hard to use correctly. These concepts will become clearer as you work through the sample projects. The book’s focus then shifts exclusively to the new APIs, helping you understand how the integration of the system with the language itself makes it easier for you to write concurrent code without overstepping the bounds of the concurrency safe zone.

    By the end of the book, you’ll have a solid foundation for working safely with concurrent code using the new async/await APIs.

    What You’ll Learn

    • Understand concurrency and its traditional problems
    • Work with the new async/await API and all its features, from the basic usage and await keywords, to task groups and async sequences.
    • Implement modern and safe concurrent code that you can start using right away

    Who This Book Is For

    Experienced iOS developers at a semi-senior or senior level. Knowledge on the Grand Central Dispatch is a bonus, but not required.

    中文:

    构建具有现代安全并发功能的可靠软件。并发是计算机科学中最棘手的问题之一。多年来,计算机科学家和工程师开发了不同的并发策略。但是,原始的并发原语复杂且难以理解,甚至更难实现。

    在Swift中使用新的async/await api,本书将解释您的代码如何通过更简单的接口抽象出许多复杂性,因此您不必自己处理并发性原语,例如信号量,锁和线程。这将允许您编写更容易阅读、更容易编写、更容易维护的并发代码。这些新的api深深扎根于Swift中,提供了编译级功能,可以防止您编写危险的并发代码。

    您将首先探索为什么并发在传统系统中很难实现。解释并发的定义及其原语将帮助您理解为什么它们很难正确使用。当您完成示例项目时,这些概念将变得更加清晰。然后,本书的重点专门转移到新的api上,帮助您了解系统与语言本身的集成如何使您更容易编写并发代码,而不会超越并发安全区的界限。

    到本书结束时,您将为使用新的async/await api安全地处理并发代码奠定坚实的基础。

    你会学到什么

    • 了解并发及其传统问题
    • 使用新的async/awa明星it API及其所有功能,从基本用法和await关键字到任务组和异步序列。
    • 实现现代安全并发代码

    这本书是给谁的

    经验丰富的iOS开发人员在半高级或高级级别。了解大中央调度是一项奖励,但不是必需的。

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册