weak self podcast
weak self
60: Swift 你給我等一等
0:00
-54:59

60: Swift 你給我等一等

新買的麥克風終於搞定,感謝 iPlayground 大力支持!既然讓大家久等了,這集就來聊 Swift async/await 的相關議題。

{ 完整節目筆記 https://weakself.dev/episodes/60 }

新買的麥克風終於搞定,感謝 iPlayground 大力支持!既然讓大家久等了,這集就來聊 Swift async/await 的相關議題。

Async/await second pitch

  • SE-0296 Async/await

  • 主要是語法、用途

  • async is part of type

  • await is the suspension point

  • overload

  • await try 的順序

  • closure

  • protocol conformance

  • [discussion] await imply try or not

  • [discussion] reasync

Structured Concurrency

  • SE-NNNN Structured Concurrency

  • async/awiat 會逐一完成

  • async let 可以建立 sub task ,離開該 scope 就取消了 (disposebag, cancellable set)

  • Time out is easy (by only timeout the major block)

  • Cancel as well

近期 Apple 開發者新聞

AirPods Max

  • 官網

  • 總結:你買不到

  • 金屬外框、類似 iPad Air 4 配色

  • 385 g 頗重

結語

更多 weak self

Discussion about this episode

User's avatar