Skip to content

Changelog: add notes about SE-0442 #75751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,32 @@
> [!NOTE]
> This is in reverse chronological order, so newer entries are added to the top.

## Swift (next)

* [SE-0442][]:
TaskGroups can now be created without explicitly specifying their child task's result types:

Previously the child task type would have to be specified explicitly when creating the task group:

```swift
await withTaskGroup(of: Int.self) { group in
group.addTask { 12 }

return await group.next()
}
```

Now the type is inferred based on the first use of the task group within the task group's body:

```swift
await withTaskGroup { group in
group.addTask { 12 }

return await group.next()
}
```


## Swift 6.0

* Swift 6 comes with a new language mode that prevents the risk of data races
Expand Down Expand Up @@ -10586,6 +10612,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
[SE-0424]: https://github.com/apple/swift-evolution/blob/main/proposals/0424-custom-isolation-checking-for-serialexecutor.md
[SE-0428]: https://github.com/apple/swift-evolution/blob/main/proposals/0428-resolve-distributed-actor-protocols.md
[SE-0431]: https://github.com/apple/swift-evolution/blob/main/proposals/0431-isolated-any-functions.md
[SE-0442]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0442-allow-taskgroup-childtaskresult-type-to-be-inferred.md
[#64927]: <https://github.com/apple/swift/issues/64927>
[#42697]: <https://github.com/apple/swift/issues/42697>
[#42728]: <https://github.com/apple/swift/issues/42728>
Expand Down