From 10ac77308d6e439a0ba4181489b4373a786bf7b2 Mon Sep 17 00:00:00 2001 From: Timofey Veretnov <45198512+elkopass@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:20:05 +0700 Subject: [PATCH] Concurrency in Swift by Apple (#6004) Updated styling and copy. --------- Co-authored-by: dsh --- .../ios/content/concurrency@-aLGB3cDXZHIhVU3t-Ve4.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/ios/content/concurrency@-aLGB3cDXZHIhVU3t-Ve4.md b/src/data/roadmaps/ios/content/concurrency@-aLGB3cDXZHIhVU3t-Ve4.md index adf6818ed..5dae6e984 100644 --- a/src/data/roadmaps/ios/content/concurrency@-aLGB3cDXZHIhVU3t-Ve4.md +++ b/src/data/roadmaps/ios/content/concurrency@-aLGB3cDXZHIhVU3t-Ve4.md @@ -1 +1,8 @@ -# Concurrency \ No newline at end of file +# Concurrency +Swift's concurrency model centers on async/await syntax, allowing asynchronous code to be written in a clear, sequential manner. It employs actors to manage shared mutable state safely, and the Task API for handling concurrent work. Structured concurrency ensures proper task lifecycle management. The language also offers async sequences and streams for working with asynchronous data, and the Sendable protocol to guarantee thread-safe data sharing. This comprehensive approach enables developers to write efficient, safe concurrent code while minimizing common issues like race conditions and deadlocks. + +Learn more from the following resources: + +- [@official@Swift Documentation (How to interact)](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/concurrency/) +- [@official@Apple Documentation (Signatures for interaction)](https://developer.apple.com/documentation/swift/concurrency) +- [@article@Concurrency bu Example](https://www.hackingwithswift.com/quick-start/concurrency)