File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,20 @@ And the module structure to support such applications looks like this:
75
75
checking, and now even an actor which is "on a queue which is targeting
76
76
another specific queue" can be properly detected using these APIs.
77
77
78
+ * Closures can now appear in pack expansion expressions, which allows you to
79
+ construct a parameter pack of closures where each closure captures the
80
+ corresponding element of some other parameter pack. For example:
81
+
82
+ ``` swift
83
+ struct Manager <each T > {
84
+ let fn: (repeat () -> (each T))
85
+
86
+ init (_ t : repeat each T) {
87
+ fn = (repeat { each t })
88
+ }
89
+ }
90
+ ```
91
+
78
92
* [ SE-0431] [ ] :
79
93
You can now require a function value to carry its actor isolation
80
94
dynamically in a way that can be directly read by clients:
You can’t perform that action at this time.
0 commit comments