shared

inline expect fun <T> shared(
    value: T
): ReadWriteProperty<Any, T>

Allows to create mutate property with frozen value. Please note that any assigned value will be frozen.

Usage:

var myCounter by shared(0)