Skip to content

Commit ad86461

Browse files
authored
Merge pull request swiftlang#71967 from hborla/sendable-documentation
[NFC][Concurrency] Improve the summary documentation for `Sendable`.
2 parents 2a78ce8 + ae8c8a3 commit ad86461

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stdlib/public/core/Sendable.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
/// A type whose values can safely be passed across concurrency domains by copying.
13+
/// A thread-safe type whose values can be shared across arbitrary concurrent
14+
/// contexts without introducing a risk of data races. Values of the type may
15+
/// have no shared mutable state, or they may protect that state with a lock or
16+
/// by forcing it to only be accessed from a specific actor.
1417
///
1518
/// You can safely pass values of a sendable type
1619
/// from one concurrency domain to another ---

0 commit comments

Comments
 (0)