freeze

fun <T> T.freeze(): T(source)

Freezes object subgraph reachable from this object. Frozen objects can be freely shared between threads/workers.

Since Kotlin

1.3

Return

the object itself

See also

Throws

if freezing is not possible