T - Type of items emitted by the Publisher this operator is applied.R - Type of items emitted by this operator.public interface ScanWithLifetimeMapper<T,R> extends ScanWithMapper<T,R>
Publisher.scanWithLifetime(Supplier) operator, as well as the ability to cleanup state
via afterFinally().| Modifier and Type | Method and Description |
|---|---|
void |
afterFinally()
Invoked after a terminal signal
PublisherSource.Subscriber#onError(Throwable) or
PublisherSource.Subscriber#onComplete() or PublisherSource.Subscription#cancel(). |
mapOnComplete, mapOnError, mapOnNext, mapTerminalvoid afterFinally()
PublisherSource.Subscriber#onError(Throwable) or
PublisherSource.Subscriber#onComplete() or PublisherSource.Subscription#cancel().
No further interaction will occur with the ScanWithLifetimeMapper to prevent use-after-free
on internal state.