provider

abstract fun <T> provider(value: Callable<T>): Provider<T>(source)

Creates a Provider implementation based on the provided value.

Return

The provider. Never returns null.

Since

4.0

Parameters

value

The java.util.concurrent.Callable use to calculate the value.

See also

Throws

If the provided value is null.