Package io.smallrye.mutiny.groups
Class MultiOnCancel<T>
- java.lang.Object
-
- io.smallrye.mutiny.groups.MultiOnCancel<T>
-
public class MultiOnCancel<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MultiOnCancel(Multi<T> upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Multi<T>
call(java.util.function.Supplier<Uni<?>> supplier)
Attaches an action executed when the subscription is cancelled.Multi<T>
invoke(java.lang.Runnable action)
Attaches an action executed when the subscription is cancelled.
-
-
-
Method Detail
-
invoke
@CheckReturnValue public Multi<T> invoke(java.lang.Runnable action)
Attaches an action executed when the subscription is cancelled. The upstream is not cancelled yet, but will be cancelled when the callback completes. Note that if the callback throws an exception then it will be discarded.- Parameters:
action
- the action, must not benull
- Returns:
- a new
Multi
-
-