Closed simonjbeaumont closed 11 months ago
The tests fail to compile on anything older than macOS 13, because they use a number of APIs only available in macOS 13+:
Duration
Task.sleep(for:)
DispatchQueue.asyncAndWait
Use the following APIs instead:
NIO.TimeInterval
Task.sleep(nanoseconds:)
DispatchQueue.asyncAndWait(execute:)
Tests can be built on older platforms.
Motivation
The tests fail to compile on anything older than macOS 13, because they use a number of APIs only available in macOS 13+:
Duration
Task.sleep(for:)
DispatchQueue.asyncAndWait
(closure variant)Modifications
Use the following APIs instead:
NIO.TimeInterval
(we have NIO dependency in tests already).Task.sleep(nanoseconds:)
DispatchQueue.asyncAndWait(execute:)
Result
Tests can be built on older platforms.