Skip to content

5.1.0

Choose a tag to compare

@Mazyod Mazyod released this 20 Feb 05:03
· 4 commits to master since this release

What's Changed

  • Modernized DiscreteTimer with @MainActor and structured concurrency

    • Replaced @unchecked Sendable with @MainActor for correct isolation
    • Replaced recursive DispatchQueue.main.asyncAfter with a Task-based loop using Task.sleep(for:) for proper cancellation support
    • Timer task is now automatically cancelled in deinit
  • Bumped macOS minimum to 13 to support the Task.sleep(for:) API

Platform Minimums

Platform Minimum
iOS 15+
macOS 13+
tvOS 15+
watchOS 8+