当前位置:网站首页>引入结构化并发,Swift 5.5 发布!
引入结构化并发,Swift 5.5 发布!
2022-04-23 20:48:00 【不叫月红】
Swift官宣 5.5 版本正式发布,该版本是一次大的版本更新,其中包括新引入的并发语言功能,包括async/await、结构化并发和 Actors。目前TSwift 5.5的更新版本现已在 Swift.org 上线,开发者可以前往下载体验。
Swift 5.5 引入了哪些新功能?一起看下:
- 异步等待
- 异步序列
- Effectful 只读属性
- 结构化并发
- async let 绑定
- 异步任务与同步代码接口的延续
- Actors
- 全局 actors
- Sendable 和 @Sendable 闭包
- if 用于后缀成员表达式
- 允许互换使用CGFloat和Double类型
- 具有关联值的枚举可编码合成
- lazy 现在适用于本地环境
- 将属性包装器扩展到函数和闭包参数
- 在通用上下文中扩展静态成员查找
而有关这些新功能如何使用,官方团队也在《 What’s New in Swift 5.5》一文中进行了详细的案例说明,感兴趣的同学可以前往学习一下。
相关链接:
- https://github.com/twostraws/whats-new-in-swift-5-5
- https://www.hackingwithswift.com/articles/233/whats-new-in-swift-5-5
版权声明
本文为[不叫月红]所创,转载请带上原文链接,感谢
https://blog.csdn.net/mengyidan/article/details/120415852
边栏推荐
- unity 功能扩展
- Syntax Error: TypeError: this. getOptions is not a function
- 41. The first missing positive number
- Linux中,MySQL的常用命令
- Vscode download speed up
- MySQL 存储过程和函数
- 又一款数据分析神器:Polars 真的很强大
- Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
- 居家第二十三天的午饭
- C migration project record: modify namespace and folder name
猜你喜欢
Lunch on the 23rd day at home
Unity Odin ProgressBar add value column
Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem
Fastdfs mind map
Addition, deletion, modification and query of advanced MySQL data (DML)
The more you use the computer, the slower it will be? Recovery method of file accidental deletion
Fastdfs思维导图
Imitation Baidu map realizes the three buttons to switch the map mode by automatically shrinking the bottom
How to configure SSH public key in code cloud
3-5 obtaining cookies through XSS and the use of XSS background management system
随机推荐
Awk print special characters
MySQL数据库常识之储存引擎
Unity ECS dots notes
Come in and teach you how to solve the problem of port occupation
Explore ASP Net core read request The correct way of body
深入探究ASP.NET Core读取Request.Body的正确方式
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
Reentrant function
UKFslam
电脑越用越慢怎么办?文件误删除恢复方法
Minecraft 1.12.2模组开发(四十三) 自定义盾牌(Shield)
Syntax Error: TypeError: this. getOptions is not a function
On the three paradigms of database design
一些接地气的话儿
100天拿下11K,转岗测试的超全学习指南
go map
Unity Odin ProgressBar add value column
Use of node template engine
Zhongchuang storage | how to choose a useful distributed storage cloud disk
Common commands of MySQL in Linux