SharedImmutable

Common
Native
1.0
@DeprecatedSinceKotlin("1.9") @Target([AnnotationTarget.PROPERTY]) annotation class SharedImmutable
(Common source) (Native source)
Deprecated: This annotation is redundant and has no effect
For Common

Note: this annotation has effect only in Kotlin/Native with legacy memory manager.

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 1.7.20 usage of this annotation is deprecated. See https://kotlinlang.org/docs/native-migration-guide.html for details.

For Native

Note: this annotation has effect only in Kotlin/Native with legacy memory manager.

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.

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

Since 1.7.20 usage of this annotation is deprecated. See https://kotlinlang.org/docs/native-migration-guide.html for details.

Constructors

Common
Native
1.0

<init>

Note: this annotation has effect only in Kotlin/Native with legacy memory manager.

<init>()