SubContainer

public protocol SubContainer: Container

SubContainers are Containers that have been created from a parent Container.

By default, SubContainers share their parent’s Config, Environment, and Services. They do not share their parent’s ServiceCache and EventLoop. This makes SubContainers great for creating thread-specific containers.

See Container for more information.