Interface VirtualGenerator<T>

Type Parameters:
T - the element type generated
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface VirtualGenerator<T>
Interface to implement to produce elements when asked by
invalid reference
Flowable#virtaulCreate(VirtualGenerator, java.util.concurrent.ExecutorService)
.

To signal onComplete, return normally from generate(VirtualEmitter). To signal onError, throw any exception from generate(VirtualEmitter).

Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The method to implement and start emitting items.