From ae8c8a3479dc548c0491554ea3851f51f207e833 Mon Sep 17 00:00:00 2001 From: Holly Borla Date: Wed, 28 Feb 2024 20:32:23 -0800 Subject: [PATCH] [NFC][Concurrency] Improve the summary documentation for `Sendable`. --- stdlib/public/core/Sendable.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/public/core/Sendable.swift b/stdlib/public/core/Sendable.swift index 67a0f3faa4e2c..30e00e52fa478 100644 --- a/stdlib/public/core/Sendable.swift +++ b/stdlib/public/core/Sendable.swift @@ -10,7 +10,10 @@ // //===----------------------------------------------------------------------===// -/// A type whose values can safely be passed across concurrency domains by copying. +/// A thread-safe type whose values can be shared across arbitrary concurrent +/// contexts without introducing a risk of data races. Values of the type may +/// have no shared mutable state, or they may protect that state with a lock or +/// by forcing it to only be accessed from a specific actor. /// /// You can safely pass values of a sendable type /// from one concurrency domain to another ---