Tags: tonyarnold/swift-nio
Tags
[Concurrency] `completeWithTask` expects to receive a `@Sendable` clo… …sure (apple#1943)
add setters to complete implementations of MutableCollection (apple#1925 ) (apple#1926) - for `CircularBuffer` and `MarkedCircularBuffer`. - with tests. (cherry picked from commit 5b1f0c6) Co-authored-by: Guillaume Lessard <glessard@users.noreply.github.com>
remove NIO1 API shims (apple#1897) Motivation: The lastest NIO versions require Swift 5.2+ to compile. Given that hopefully nobody ever created a NIO1 application for Swift 5.2+, I'd say it's about time to remove the NIO1 API shims (and related docs). Modification: - remove the NIO1 API shims - remove the migration docs Result: Less code.
docs: formatting comments with double slash (apple#1881) Motivation: Triple slashes should be for exportable documentation (like functions declarations). Modification: Replaced `///` with `//`. Result: Better looking code comments. Co-authored-by: Antoine Cœur <acoeur@apple.com>
Tests should tolerate cpusets. (apple#1853) Motivation: Our current CPU pinning tests do not expect to be pinned to cores that do not include core 0. That's unnecessary. Modifications: - Expect to pin to the first core in our cpuset. Result: Tests run inside cpusets.
Implement reserveCapacity for CircularBuffer. (apple#1819) Motivation: While spelunking through the code I noticed we called CircularBuffer.reserveCapacity, but never actually implemented it. This means it never did anything. It should do something. Modifications: - Implemented reserveCapacity. Result: reserveCapacity does something now.
Make HTTP Parser import implementationOnly (apple#1776) Motivation: Non-implementation-only imports in Swift have an annoying tendency to put C header files into all downstream build paths. The result is that leaf packages that include any C header files run a very high risk of colliding with declarations in the inner header files. In this case, we've had users bump into issues with the HTTP_STATUS_* enum cases already. Modifications: - Make CNIOHTTPParser import implementationOnly where possible. Result: Fewer risks of colliding symbols.
Make all imports of CNIOLinux conditional on OS (apple#1704) Motivation: Some users are including NIO in Xcode workspaces rather than using SPM. When this is done, if all imports of CNIOLinux are conditional they can remove this project from their workspace. Modifications: Make all imports of CNIOLinux conditional on Linux, Android or FreeBSD Result: No user visible change.
PreviousNext