shared

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

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

Usage:

var myCounter by shared(0)