weak self
weak self
一三、波肥
60: Swift 你給我等一等
55 minutes Posted Dec 13, 2020 at 1:00 pm.
0:00
55:00
Download MP3
Show notes


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



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


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

--
Hosting provided by SoundOn