MCPcopy Index your code
hub / github.com/google/dagger / Producer

Interface Producer

dagger-producers/main/java/dagger/producers/Producer.java:94–107  ·  view source on GitHub ↗

An interface that represents the production of a type T. You can also inject Producer instead of T, which will delay the execution of any code that produces the T until #get is called. For example, you might inject Producer to lazily choose betw

Source from the content-addressed store, hash-verified

92 * @since 2.0
93 */
94@Beta
95public interface Producer<T> {
96 /**
97 * Returns a future representing a running task that produces a value. Calling this method will
98 * trigger the submission of this task to the executor, if it has not already been triggered. In
99 * order to trigger this task's submission, the transitive dependencies required to produce the
100 * {@code T} will be submitted to the executor, as their dependencies become available.
101 *
102 * <p>If the key is bound to a {@link Produces} method, then calling this method multiple times
103 * will return the same future.
104 */
105 @CheckReturnValue
106 ListenableFuture<T> get();
107}

Callers 8

computeMethod · 0.65
computeMethod · 0.65
applyMethod · 0.65
applyMethod · 0.65
getMethod · 0.65
getMethod · 0.65
computeMethod · 0.65
executeMethod · 0.65

Implementers 15

ComponentNamesdagger-compiler/main/java/dagger/inter
FactoryFieldsdagger-compiler/main/java/dagger/inter
TestComponentDataSupplierhilt-android-testing/main/java/dagger/
EntryPointshilt-core/main/java/dagger/hilt/EntryP
ImmediateProducerdagger-producers/main/java/dagger/prod
Produceddagger-producers/main/java/dagger/prod
Successfuldagger-producers/main/java/dagger/prod
Faileddagger-producers/main/java/dagger/prod
AbstractProducerdagger-producers/main/java/dagger/prod
NonCancellationPropagatingViewdagger-producers/main/java/dagger/prod
Producersdagger-producers/main/java/dagger/prod
DependencyMethodProducerdagger-producers/main/java/dagger/prod

Calls

no outgoing calls

Tested by

no test coverage detected