Upgrading
HTTPMethod now conforms to Sendable. If you added this workaround on 2.0.0, delete it — otherwise the compiler warns that the conformance was already stated in the type's module:
extension HTTPMethod: @retroactive @unchecked Sendable {}You can now declare your own endpoint types Sendable, which resolves sending 'endpoint' risks causing data races when an endpoint is stored in actor-isolated state. Declare the endpoint outside a defaultIsolation(MainActor.self) target. MultipartEndpoint cannot opt in yet, because MultipartBodyPart holds an InputStream.
What's Changed
- Conform HTTPMethod to Sendable by @radimvaculik in #116
New Contributors
- @radimvaculik made their first contribution in #116
Full Changelog: 2.0.0...2.1.0