当前位置:网站首页>Introduce structured concurrency and release swift 5.5!

Introduce structured concurrency and release swift 5.5!

2022-04-23 20:50:00 It's not called moon red

Swift Official announcement 5.5 Official release , This version is a major version update , This includes the newly introduced concurrent language function , Include async/await、 Structured concurrency and Actors. at present TSwift 5.5 An updated version of is now available in Swift.org go online , Developers can go to download experience .

Swift 5.5 What new features have been introduced ? Let's have a look at :

  • Asynchronous waiting
  • Asynchronous sequence
  • Effectful Read-only property
  • Structured concurrency
  • async let binding
  • Continuation of asynchronous task and synchronous code interface
  • Actors
  • overall situation actors
  • Sendable and @Sendable Closure
  • if Used for suffix member expression
  • Allow interchangeability CGFloat and Double type
  • Enumerations with associated values can be encoded
  • lazy Now applicable to the local environment
  • Extend the property wrapper to functions and closure parameters
  • Extending static member lookup in a common context

And how to use these new features , The official team is also there 《 What’s New in Swift 5.5》 A detailed case description is given in this paper , Interested students can go to study .

Related links :

  • https://github.com/twostraws/whats-new-in-swift-5-5
  • https://www.hackingwithswift.com/articles/233/whats-new-in-swift-5-5

版权声明
本文为[It's not called moon red]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204232047397177.html