This is the first video in a new series, Zed Decoded, in which we'll take a close look at how Zed works and how it's built.
This is the companion video to a full blog post that you can find here 👉 zed.dev/blog/zed-decoded-asyn...
In episode, Thorsten and Antonio talk about async Rust and explore how it's used in Zed. This conversation is the basis for the blog post.
Chapters
00:00 Introduction to Async Rust and Concurrency
03:12 Choosing a Runtime and Setting Up the Main Function
06:31 Integrating with macOS using Grand Central Dispatch
10:00 The Importance of the Main Thread in macOS Applications
20:23 The Background Executor for Multi-Threading
24:40 Using the Background Executor
25:18 Spawning Tasks and Detaching
26:08 Tasks as Handles to Futures
27:32 Awaiting Background Tasks
28:29 Offloading Work with the Background Executor
29:59 Efficient Cloning and Mutation
36:42 Deterministic Testing with a Test Executor
25 июн 2024