[Accepted with modifications] SE-0472: Starting tasks synchronously from caller context

Hello, Swift community!

The second review of SE-0472: Starting tasks synchronously from caller context ended on May 19.

The updated proposal renamed the core API to Task.immediate (and the other detached and task group variants similarly), and removed the restriction that the closure must have the same isolation as the calling context.

Discussion on this version of the proposal was light but positive. A question was raised during the second review about whether the closures passed to the Task.immediate family of functions should be annotated @isolated(any). The proposal author confirmed that this was indeed required based on experience implementing the feature. Accordingly, the Language Steering Group accepts the proposal with this modification.

Thank you to all who participated in the review to help make Swift a better language!

—Tony Allevato
Review manager

15 Likes