File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
## Swift 6.0
7
7
8
+
9
+ * Swift 6 comes with a new language mode that prevents the risk of data races
10
+ at compile time. This guarantee is accomplished through _ data isolation_ ; the
11
+ compiler will validate that data passed over a boundary between concurrently
12
+ executing code is either safe to reference concurrently, or mutually
13
+ exclusive access to the value is enforced.
14
+
15
+ The data-race safety checks were previously available in Swift 5.10 through
16
+ the ` -strict-concurrency=complete ` compiler flag. Complete concurrency
17
+ checking in Swift 5.10 was overly restrictive, and Swift 6 removes many
18
+ false-positive data-race warnings through better ` Sendable ` inference,
19
+ new analysis that proves mutually exclusive access when passing values with
20
+ non-` Sendable ` type over isolation boundaries, and more.
21
+
22
+ You can enable the Swift 6 language mode using the ` -swift-version 6 `
23
+ compiler flag.
24
+
8
25
* [ SE-0431] [ ] :
9
26
You can now require a function value to carry its actor isolation
10
27
dynamically in a way that can be directly read by clients:
You can’t perform that action at this time.
0 commit comments