Class Producers

java.lang.Object
dagger.producers.Producers

@Beta public final class Producers extends Object
Utility methods to create Producers.
  • Method Details

    • immediateProducer

      public static <T> Producer<T> immediateProducer(T value)
      Returns a producer that succeeds with the given value.
    • immediateFailedProducer

      public static <T> Producer<T> immediateFailedProducer(Throwable throwable)
      Returns a producer that fails with the given exception.