provider

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

Creates a Provider whose value is calculated using the given Callable.

The provider is live and will call the Callable each time its value is queried. The Callable may return null, in which case the provider is considered to have no value.

Return

The provider. Never returns null.

Parameters

value

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