regenerating

open fun <R> regenerating(consumer: (T) -> R): R

Ensures the cached value is up-to-date (see regenerate), then applies consumer to it, returning the result of consumer.