OnceSupplier

fun <T : Any> OnceSupplier(innerSupplier: () -> T)

Create a OnceSupplier from the given supplier.

Parameters

T

The type of value being supplied. Must not be nullable.

innerSupplier

The supplier to be evaluated at most once.