LFK mobile DevPods

Presenting the latest mobile development and life of Engineers in LY Corporation and its group companies.

  • shinzan
Published: 2022/03/28 827 views

About this episode

Swift 新しい時間の概念(Clock, Instant and Duration)

概要

これまでSwiftには時間の概念を表すものがなく、場面に応じて様々な手段で時間を扱ってきた(Foundation, Dispatchなど)。今回時間の統一的な概念を導入して、より時間を扱いやすくする。

詳細

Swift 新しい時間の概念(Clock, Instant and Duration)

タイムライン

  • オープニング (00:00 ~)
  • 今回のテーマ (01:24 ~)
  • 用語紹介 (01:58 ~)
  • 時間を定義する3つの概念 (04:02 ~)
  • 時間を定義するために必要なこと (04:56 ~)
  • 現在の問題 (08:00 ~)
  • 今回プロポーザルの範囲 (09:12 ~)
  • 概念を定義する型の紹介 (10:04 ~)
  • Clockプロトコル (10:12 ~)
  • InstantProtocolプロトコル (13:17 ~)
  • DurationProtocolプロトコル (15:08 ~)
  • Duration構造体 (16:54 ~)
  • 標準ライブラリに事前定義されている型 (18:56 ~)
  • ContinuousClock構造体(19:12 ~)
  • SuspendingClock構造体(19:40 ~)
  • 標準ライブラリ以外で事前定義されている型(20:16 ~)
  • UTCClock構造体(20:22 ~)
  • SwiftConcurrency Task.sleepの新しいAPI(22:46 ~)
  • エンディング (23:16 ~)

感想等は #LFK_DEVPODS へ!

10秒前へ 10秒次へ