-
Notifications
You must be signed in to change notification settings - Fork 722
deprecate NIOEventLoopGroupProvider.createNew #2480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Must be merged after #2471 |
|
Any library that supports both Posix and Network framework will probably end up having to implement a new version of |
That's a good point.
Yes, I'll work on that rn.
I'd hope that libraries could use |
That'd work I guess |
give it a try |
|
friendly ping @Lukasa |
6494dee to
9254ec0
Compare
a54a324 to
113d3fb
Compare
Motivation:
NIOEventLoopGroupProvider.createNewwas probably never a good idea because it creates shutdown issues for any library that uses it. Given that we now have singleton (#2471)EventLoopGroups, we can solve this issue by just not having event loop group providers.Users can just use
group: any EventLoopGroupand optionallygroup: any EventLoopGroup = MultiThreadedEventLoopGroup.singleton.Modifications:
NIOEventLoopGroupProvider.createNew@available(deprecated))NIOEventLoopGroupProviderResult: