Skip to content

Conversation

@scottmarchant
Copy link
Collaborator

Change Summary

Adds a much more extensive README, some examples, and a few necessary API adjustments discovered while implementing the examples.

Change Details

  • refactor: Consolidate general operating system availability to manifest. e161c5f
  • fix: NIOThreadPool shutdownGracefully API had slight mismatch from NIOPosix which prevented calling the async variation. ad16b01
  • refactor: Expose async shutdown api fro MultiThreadedEventLoopGroup
  • feat: Add example for using MultiThreadedEventLoopGroup. 47b9be0
  • feat: Add example for NIOThreadPool 4a087fd
  • docs: Add extensive README.md 843af50

Note: This PR contains a breaking API change, but NIOAsyncRuntime has never been released yet, so it is fine.

}()

@preconcurrency
public func shutdownGracefully(_ callback: @escaping @Sendable (Error?) -> Void = { _ in }) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes brings the implementation more in line with the NIOPosix implementation. The changes in NIOTreadPoolTests were required after making this change, which is good, because this default parameter hid the async API.

Base automatically changed from refactor/updateSwiftFormatting to main December 10, 2025 16:20
@scottmarchant scottmarchant force-pushed the feat/updateReadmeAndExamples branch from 843af50 to 9fa4919 Compare December 10, 2025 16:22
@scottmarchant scottmarchant merged commit 0bfc7b0 into main Dec 10, 2025
@scottmarchant scottmarchant deleted the feat/updateReadmeAndExamples branch December 10, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants