Renames package to swift-timeout
you must now import Timeout
.
Adds deadline when Clock
is available:
import Timeout
let val = try await withThrowingTimeout(after: .now + .seconds(2)) {
try await perform()
}
Renames package to swift-timeout
you must now import Timeout
.
Adds deadline when Clock
is available:
import Timeout
let val = try await withThrowingTimeout(after: .now + .seconds(2)) {
try await perform()
}