Open
Description
Task.sleep(nanoseconds:)
is used to sleep when calling withThrowingTimeout(seconds:)
. AFAICT Task.sleep(nanoseconds:)
pauses on system sleep.
The withThrowingTimeout(after:)
function uses a ContinousClock which is "A clock that measures time that always increments and does not stop incrementing while the system is asleep."
I think the withThrowingTimeout()
functions that don't require a Clock
parameter should all have the same behavior. Should ContinousClock
change to SuspendingClock?
Metadata
Metadata
Assignees
Labels
No labels