@Beta
public final class Producers
extends java.lang.Object
Producer
s.Modifier and Type | Method and Description |
---|---|
static <T> Producer<T> |
immediateFailedProducer(java.lang.Throwable throwable)
Returns a producer that fails with the given exception.
|
static <T> Producer<T> |
immediateProducer(T value)
Returns a producer that succeeds with the given value.
|
public static <T> Producer<T> immediateProducer(T value)
public static <T> Producer<T> immediateFailedProducer(java.lang.Throwable throwable)