java.lang.Object
org.saynotobugs.confidence.rxjava3.procedure.Emit<Up>
All Implemented Interfaces:
org.dmfs.jems2.FragileProcedure<RxSubjectAdapter<Up>,RuntimeException>, org.dmfs.jems2.Procedure<RxSubjectAdapter<Up>>

public final class Emit<Up> extends Object implements org.dmfs.jems2.Procedure<RxSubjectAdapter<Up>>
  • Constructor Details

    • Emit

      @SafeVarargs public Emit(Up... emissions)
      Creates a Procedure causes the upstream subject to emit the given value(s).

      Note, this has no effect on CompletableSources because they don't have any values.

      SingleSources and MaybeSources can only emit a single value and trying to emit more than one value will cause an Exception to be thrown. Also note that SingleSources and MaybeSources automatically complete when a value is emitted.

    • Emit

      public Emit(Iterable<Up> emissions)
      Creates a Procedure causes the upstream subject to emit the given value(s).

      Note, this has no effect on CompletableSources because they don't have any values.

      SingleSources and MaybeSources can only emit a single value and trying to emit more than one value will cause an Exception to be thrown. Also note that SingleSources and MaybeSources automatically complete when a value is emitted.

  • Method Details