Class FlowableFromAction<T>

java.lang.Object
io.reactivex.rxjava3.core.Flowable<T>
io.reactivex.rxjava3.internal.operators.flowable.FlowableFromAction<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
Supplier<T>, org.reactivestreams.Publisher<T>

public final class FlowableFromAction<T> extends Flowable<T> implements Supplier<T>
Executes an Action and signals its exception or completes normally.
Since:
3.0.0
  • Field Details

    • action

      final Action action
  • Constructor Details

    • FlowableFromAction

      public FlowableFromAction(Action action)
  • Method Details

    • subscribeActual

      protected void subscribeActual(org.reactivestreams.Subscriber<? super T> subscriber)
      Description copied from class: Flowable
      Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.

      There is no need to call any of the plugin hooks on the current Flowable instance or the Subscriber; all hooks and basic safeguards have been applied by Flowable.subscribe(Subscriber) before this method gets called.

      Specified by:
      subscribeActual in class Flowable<T>
      Parameters:
      subscriber - the incoming Subscriber, never null
    • get

      public T get() throws Throwable
      Description copied from interface: Supplier
      Produces a value or throws an exception.
      Specified by:
      get in interface Supplier<T>
      Returns:
      the value produced
      Throws:
      Throwable - if the implementation wishes to throw any type of exception