Interface VirtualEmitter<T>

Type Parameters:
T - the element type to emit

public interface VirtualEmitter<T>
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a disposable container to relay cancellation notifications while awaiting the run.
    void
    emit(T item)
    Signal the next item
  • Method Details

    • emit

      void emit(T item) throws Throwable
      Signal the next item
      Parameters:
      item - the item to signal
      Throws:
      Throwable - an arbitrary exception if the downstream cancelled
    • canceller

      DisposableContainer canceller()
      Returns a disposable container to relay cancellation notifications while awaiting the run.
      Returns:
      a new Disposable Container instance