pointfreeco / swift-clocks

⏰ A few clocks that make working with Swift concurrency more testable and more versatile.
MIT License
266 stars 17 forks source link

Expose concrete `AnyClock` type #11

Closed stephencelis closed 1 year ago

stephencelis commented 1 year ago

There are limitations in Swift that prevent existential clocks (e.g. any Clock<Duration>) from being used in certain APIs, like those provided by the Async Algorithms package. To work around this, we should ship a concrete eraser that can be used where existentials cannot.