shared

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

Deprecated (with error)

Is obsolete in new memory model.

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

Usage:

var myCounter by shared(0)