event, returns the next corresponding event that this lifecycle should
dispose on.Function but ensures a single event
type in the generic and tightens the possible exception thrown to OutsideScopeException.ScopeProvider implementations that resolve the next corresponding lifecycle event and construct
a Completable representation of it from the LifecycleScopeProvider.lifecycle() stream.LifecycleScopeProviders.LifecycleScopeProvider instances for tests.