swift-timeout
swift-timeout copied to clipboard
Swift Concurrency timeout handler
Results
2
swift-timeout issues
Sort by
recently updated
recently updated
newest added
Sometimes you just wanna reset the timeout timer if forward progress is made - I think this could be a great feature! Probably just some sort of closure passed to...
`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](https://developer.apple.com/documentation/swift/continuousclock) which is "A clock that measures time that always increments...