init(validatingGroup:childGroup:)

Create a ServerBootstrap on the EventLoopGroup group which accepts Channels on childGroup, validating that the EventLoopGroups are compatible with ServerBootstrap.

Bootstrap.swift:139
init?(validatingGroup group: any EventLoopGroup, childGroup: (any EventLoopGroup)? = nil)

Parameters

group

The EventLoopGroup to use for the bind of the ServerSocketChannel and to accept new SocketChannels with.

childGroup

The EventLoopGroup to run the accepted SocketChannels on. If nil, group is used.