File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
6
6
Swift 5.5
7
7
---------
8
8
9
+ * [ SE-0300] [ ] :
10
+
11
+ Async functions can now be suspended using the ` withUnsafeContinuation `
12
+ and ` withUnsafeThrowingContinuation ` functions. These both take a closure,
13
+ and then suspend the current async task, executing that closure with a
14
+ continuation value for the current task. The program must use that
15
+ continuation at some point in the future to resume the task, passing in
16
+ a value or error, which then becomes the result of the ` withUnsafeContinuation `
17
+ call in the resumed task.
18
+
9
19
* Type names are no longer allowed as an argument to a subscript parameter that expects a metatype type
10
20
11
21
``` swift
@@ -8493,6 +8503,7 @@ Swift 1.0
8493
8503
[SE- 0297 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0297-concurrency-objc.md>
8494
8504
[SE- 0298 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0298-asyncsequence.md>
8495
8505
[SE- 0299 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0299-extend-generic-static-member-lookup.md>
8506
+ [SE- 0300 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0300-continuation.md>
8496
8507
[SE- 0306 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0306-actors.md>
8497
8508
[SE- 0310 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0310-effectful-readonly-properties.md>
8498
8509
You can’t perform that action at this time.
0 commit comments