Skip to content

Rename swift-timeout

Compare
Choose a tag to compare
@swhitty swhitty released this 08 Sep 10:12
· 39 commits to main since this release
df40fd6

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()
}