You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calls to `async` functions may suspend, meaning that they give up the thread on which they are executing and will be scheduled to run again later. The potential for suspension on asynchronous calls requires the `await` keyword, similarly to the way in which `try` acknowledges a call to a `throws` function:
41
+
Calls to `async` functions may suspend, meaning that they give up the thread on which they are executing and will be scheduled to run again later. The potential for suspension on asynchronous calls requires the `await` keyword, similarly to the way in which `try` acknowledges a call to a `throws` function:
41
42
42
-
```swift
43
+
```swift
43
44
funcprocessImageData() asyncthrows-> Image {
44
45
let dataResource =tryawaitloadWebResource("dataprofile.txt")
45
46
let imageResource =tryawaitloadWebResource("imagedata.dat")
@@ -60,6 +61,8 @@ Swift Next
60
61
}
61
62
```
62
63
64
+
**Add new entries to the top of this section, not here!**
65
+
63
66
Swift 5.4
64
67
---------
65
68
@@ -365,8 +368,6 @@ Swift 5.3
365
368
closure's capture list in addition to the existing 'use `self.` explicitly'
366
369
fix-it.
367
370
368
-
**Add new entries to the top of this section, not here!**
369
-
370
371
Swift 5.2
371
372
---------
372
373
@@ -1385,10 +1386,10 @@ Swift 4.1
1385
1386
types, such as `index(of:)`.
1386
1387
1387
1388
* [SE-0157][] is implemented. Associated types can now declare "recursive"
1388
-
constraints, which require that the associated type conform to the enclosing
1389
-
protocol. The standard library protocols have been updated to make use of
1390
-
recursive constraints. For example, the `SubSequence` associated type of
1391
-
`Sequence` follows the enclosing protocol:
1389
+
constraints, which require that the associated type conform to the enclosing
1390
+
protocol. The standard library protocols have been updated to make use of
1391
+
recursive constraints. For example, the `SubSequence` associated type of
1392
+
`Sequence` follows the enclosing protocol:
1392
1393
1393
1394
```swift
1394
1395
protocolSequence {
@@ -1405,16 +1406,15 @@ Swift 4.1
1405
1406
```
1406
1407
1407
1408
As a result, a number of new constraints have been introduced into the
1408
-
standard library protocols:
1409
-
1410
-
* Make the `Indices` associated type have the same traversal requirements as
1411
-
its enclosing protocol, e.g., `Collection.Indices` conforms to
1412
-
`Collection`, `BidirectionalCollection.Indices` conforms to
1413
-
`BidirectionalCollection`, and so on
1414
-
* Make `Numeric.Magnitude` conform to `Numeric`
1415
-
* Use more efficient `SubSequence` types forlazy filter and map
1416
-
* Eliminate the `*Indexable` protocols
1417
-
1409
+
standard library protocols:
1410
+
1411
+
* Make the `Indices` associated type have the same traversal requirements as
1412
+
its enclosing protocol, e.g., `Collection.Indices` conforms to
1413
+
`Collection`, `BidirectionalCollection.Indices` conforms to
1414
+
`BidirectionalCollection`, and so on
1415
+
* Make `Numeric.Magnitude` conform to `Numeric`
1416
+
* Use more efficient `SubSequence` types forlazy filter and map
1417
+
* Eliminate the `*Indexable` protocols
1418
1418
1419
1419
* [SE-0161][] is fully implemented. KeyPaths now support subscript, optional
1420
1420
chaining, and optional force-unwrapping components.
0 commit comments