当前位置:网站首页>引入结构化并发,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
边栏推荐
- Leetcode 232, queue with stack
- How many hacking methods do you know?
- [matlab 2016 use mex command to find editor visual studio 2019]
- 打新债中签以后怎么办,网上开户安全吗
- Prim、Kruskal
- Communication between RING3 and ring0
- Go language development Daily Fresh Project Day 3 Case - Press Release System II
- 亚马逊和Epic将入驻,微软应用商城向第三方开放
- mmap、munmap
- C# 知识
猜你喜欢
Cmake project under vs2019: calculating binocular parallax using elas method
2021-09-02 unity project uses rider to build hot change project failure record of ilruntime
Syntax Error: TypeError: this. getOptions is not a function
Lunch on the 23rd day at home
Latex formula
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
Linux中,MySQL的常用命令
Unity animation creates sequence frame code and generates animationclip
Express③(使用Express编写接口、跨域有关问题)
Deep analysis of C language function
随机推荐
MySQL 存储过程和函数
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
JSX syntax rules
C knowledge
On the three paradigms of database design
LeetCode 116. Populate the next right node pointer for each node
Latex formula
vulnhub DC:1渗透笔记
Rust更适合经验较少的程序员?
DOS command of Intranet penetration
中创存储|想要一个好用的分布式存储云盘,到底该怎么选
小米手机全球已舍弃“MI”品牌,全面改用“xiaomi”全称品牌
Learn to C language fourth day
深入探究ASP.NET Core读取Request.Body的正确方式
危机即机遇,远程办公效率为何会提升?
go reflect
Leetcode 709, convert to lowercase
IOT 设计与开发
Common problems in deploying projects with laravel and composer for PHP
Opencv reports an error. Expected PTR < CV:: UMAT > for argument '% s'‘