readium / swift-toolkit

A toolkit for ebooks, audiobooks and comics written in Swift
https://readium.org/mobile/
BSD 3-Clause "New" or "Revised" License
222 stars 96 forks source link

[Bug] Expression is 'async' but is not marked with 'await' #458

Closed banelin8814 closed 5 days ago

banelin8814 commented 6 days ago

Describe the bug

In HTTPFetcher line77: completion(result.map { _ in }.mapError { ResourceError.wrap($0) }) there's error: Expression is 'async' but is not marked with 'await'

and HTTPClient line36: return response there's error: Expression is 'async' but is not marked with 'await'

How to reproduce?

I just use SPM to use swift-toolkit

Readium version

develop

OS version

iOS 18

Testing device

iPhone 14Pro

Environment

macOS: 15.0 beta
platform: arm
Xcode: 16 beta

Additional context

No response

mickael-menu commented 5 days ago

This will all change for the coming v3 on develop. I recommend using the last released version in the meantime.