Skip to content

Commit 5f76bab

Browse files
committed
Clarify that a Sendable value always satisfies transferring.
1 parent 0dc7d62 commit 5f76bab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proposals/NNNN-transferring-parameters-and-results.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ nonisolated func f(s: S) async {
208208
}
209209
```
210210

211+
A `Sendable` value always satisfies the requirements of `transferring` because
212+
`Sendable` values are always safe to pass over isolation boundaries, and thus
213+
not included in region analysis.
214+
211215
### Function subtyping
212216

213217
For a given type `T`, `transferring T` is a subtype of `T`. `transferring` is

0 commit comments

Comments
 (0)