0.1.0 #1
mbrandonw
announced in
Announcements
Replies: 1 comment 2 replies
-
Loving this release! One question. Am I right in assuming that dot-syntax shorthands are not available due to Swift's lack of extensions on existentials (for now)? #if compiler(>=5.8) // theoretical Swift version where existential extensions are supported
@available(iOS 16, macOS 13, tvOS 16, watchOS 9, *)
extension any Clock<Duration> {
@inlinable
public static var immediate: ImmediateClock { .init() }
@inlinable
public static var test: TestClock { .init() }
@inlinable
public static func unimplemented(
name: String = "Clock",
now: Instant = .init()
) -> UnimplementedClock {
.init(name: name, now: now)
}
}
#endif If so, this could make for a compelling snippet in a potential future proposal. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
⏰ A few clocks that make working with Swift concurrency more testable and more versatile.
This discussion was created from the release 0.1.0.
Beta Was this translation helpful? Give feedback.
All reactions