Context:
When attempting to reproduce the example async/await example from README.md, an error occurs.
let request = HTTPClientRequest(url: "https://apple.com/")
let response = try await HTTPClient.shared.execute( // --> `Type 'HTTPClient' has no member 'shared`
request,
timeout: .seconds(30)
)
// snip
Steps to reproduce:
Copy/paste async/await example
Attempt compilation
$ swift --version
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
AsyncHTTPClient commit hash:
291438696abdd48d2a83b52465c176efbd94512b
Context: When attempting to reproduce the example async/await example from README.md, an error occurs.
Steps to reproduce:
$ swift --version
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0Operating system: macOS 14.4.1