一冊でマスター!Swift Concurrency入門

ebook 技術の泉シリーズ

By 佐藤剛士

cover image of 一冊でマスター!Swift Concurrency入門

Sign up to save your library

With an OverDrive account, you can save your favorite libraries for at-a-glance information about availability. Find out more about OverDrive accounts.

   Not today

Find this title in Libby, the library reading app by OverDrive.

Download Libby on the App Store Download Libby on Google Play

Search for a digital library with this title

Title found at these libraries:

Loading...
Swift 5.5からSwiftは並行処理を言語機能としてサポートするようになりました。それがSwift Concurrencyです。本書はその機能を解説しています。
async/awaitにより、非同期処理をクロージャーよりも完結に記述できます。データ競合を防ぐ新しい型としてActorやデータ競合が発生しない型を表すSendableが登場しました。並行処理の実行単位であるTaskもあります。Swift ConcurrencyはWWDC 2021の目玉機能といっても過言ではありません。
Swift Concurrencyの概要が一冊で日本語で理解できるのが本書の特徴です。Swift Concurrencyには覚えなければいけない概念が数多くあります。async、await、Actor、MainActor、Task, TaskGroup、AsyncSequence、Sendableなどなど。本書は一冊でSwift Concurrencyの概要をほぼ全て網羅しています。各章にそれぞれサンプルコードが付属しているので、どんな動作をするのかを試して理解を深められます。
一冊でマスター!Swift Concurrency入門