finalizeValueOnRead

abstract fun finalizeValueOnRead()(source)

Requests that the final value of this object be calculated on the next read of the value, if not already known.

Changes to the value of this object or to the source for the value are still permitted until the final value is calculated, after which time attempts to make changes will fail with an exception.

You can use this method along with disallowChanges to indicate that the value has been configured and that the final value is ready to calculate, without actually calculating the final value until it is required. This can be a useful alternative to finalizeValue for values that are expensive to calculate.

If the value of this object is already final, this method does nothing.

Since

6.1