Test2::API::Stack - Object to manage a stack of Test2::Hub instances.
The internals of this package are subject to change at any time! The public methods provided will not change in backwards incompatible ways, but the underlying implementation details might. Do not break encapsulation here!
This module is used to represent and manage a stack of Test2::Hub objects. Hubs are usually in a stack so that you can push a new hub into place that can intercept and handle events differently than the primary hub.
my $stack = Test2::API::Stack->new;
my $hub = $stack->top;