Skip to content

Manual NIO dependencies factory's preparation

Compare
Choose a tag to compare
@jordanebelanger jordanebelanger released this 25 Nov 15:44
· 32 commits to master since this release

The responsibility of creating the NonBlockingFileIO and the processing EventLoopGroup has been moved to the client so that client's can cleanly shut them down when their application is shuts down.

What this means is that the LogHandler factory must now be prepared with the NIO dependencies manually, they are no longer created automatically.

StackdriverLogHandlerFactory.prepare(with: configuration,
                                     fileIO: fileIO,
                                     eventLoopGroup: eventLoopGroup)