mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
Motivation: Soon we will need to silence some `Sendable` warnings. The recommended way is to use a wrapper type that is unconditionally `Sendable`. https://github.com/apple/swift-evolution/blob/main/proposals/0302-concurrent-value-and-concurrent-closures.md#adaptor-types-for-legacy-codebases Modifications: - add internal `UnsafeTransfer` type Result: We can silence `Sendable` warnings and errors by using `UnsafeTransfer` to pass non-`Sendable` values around.