Skip to content

Rename swift-timeout

Latest
Compare
Choose a tag to compare
@swhitty swhitty released this 08 Sep 21:49
· 4 commits to main since this release
f649c4e

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