当前位置:网站首页>引入结构化并发,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
边栏推荐
- matplotlib. Pyplot partition drawing
- Common commands of MySQL in Linux
- mmap、munmap
- JS arrow function user and processing method of converting arrow function into ordinary function
- Pikachuxss how to get cookie shooting range, always fail to return to the home page
- Unity solves Z-fighting
- MySQL stored procedures and functions
- 居家第二十三天的午饭
- Vulnhub DC: 1 penetration notes
- go interface
猜你喜欢
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
MySQL基础合集
Unity solves Z-fighting
Resolve the eslint warning -- ignore the warning that there is no space between the method name and ()
Syntax Error: TypeError: this. getOptions is not a function
MySQL基础之写表(创建表)
Reentrant function
内网渗透之DOS命令
Common problems in deploying projects with laravel and composer for PHP
Fastdfs思维导图
随机推荐
Factory mode
常用60类图表使用场景、制作工具推荐
Easy to use nprogress progress bar
Deep analysis of C language function
MySQL进阶之常用函数
內網滲透之DOS命令
笔记本电脑卡顿怎么办?教你一键重装系统让电脑“复活”
MySQL数据库常识之储存引擎
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
危机即机遇,远程办公效率为何会提升?
mmap、munmap
Imitation Baidu map realizes the three buttons to switch the map mode by automatically shrinking the bottom
Selenium displays webdriverwait
MySQL基础合集
Syntaxerror: unexpected token r in JSON at position 0
Zhongchuang storage | how to choose a useful distributed storage cloud disk
Async function ------ ES6
Some grounded words
Awk example skills
LeetCode 116. Populate the next right node pointer for each node