SharedImmutable

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
expect annotation class SharedImmutable(source)

Marks a top level property with a backing field as immutable. It is possible to share the value of such property between multiple threads, but it becomes deeply frozen, so no changes can be made to its state or the state of objects it refers to.

The annotation has effect only in Kotlin/Native platform.

PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES.

Since Kotlin

1.1
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
expect annotation class SharedImmutable(source)

Marks a top level property with a backing field as immutable. It is possible to share the value of such property between multiple threads, but it becomes deeply frozen, so no changes can be made to its state or the state of objects it refers to.

The annotation has effect only in Kotlin/Native platform.

PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES.

Since Kotlin

1.0