Skip to content

Commit 25dd85c

Browse files
simanerushrjmccall
andauthored
Update proposals/NNNN-global-actor-isolated-types-usability.md
Co-authored-by: John McCall <[email protected]>
1 parent e9a3570 commit 25dd85c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proposals/NNNN-global-actor-isolated-types-usability.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ We propose that:
101101

102102
- Stored properties of `Sendable` type in a global-actor-isolated value type can be declared as `nonisolated` without using `(unsafe)`.
103103
- Stored properties of `Sendable` type in a global-actor-isolated value type are treated as `nonisolated` when used within the module or if the value type is `frozen`.
104-
- `@Sendable` would be inferred for global-actor-isolated functions and closures. Additionally, globally isolated closures would be allowed to capture non-`Sendable` values.
104+
- `@Sendable` is inferred for global-actor-isolated functions and closures.
105+
- Global-actor-isolated closures are allowed to capture non-`Sendable` values despite being `@Sendable`.
105106
- The programmer would be able to suppress the automatic conformance inferred via the above rule using the new `@~Sendable` attribute. By analogy, introduce a new `~Sendable` protocol to indicate that a nominal type is not `Sendable`.
106107
- Require the global-actor-isolated subclass of a `nonisolated`, non-`Sendable` to be non-`Sendable`.
107108

0 commit comments

Comments
 (0)