Package dagger.producers
Class Producers
java.lang.Object
dagger.producers.Producers
Utility methods to create
Producer
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Producer<T>
immediateFailedProducer
(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.
-
Method Details
-
immediateProducer
Returns a producer that succeeds with the given value. -
immediateFailedProducer
Returns a producer that fails with the given exception.
-