Volatile

@Target(allowedTargets = [AnnotationTarget.FIELD])
expect annotation class Volatile(source)

Marks the JVM backing field of the annotated property as volatile, meaning that writes to this field are immediately made visible to other threads.

Since Kotlin

1.0
@Target(allowedTargets = [AnnotationTarget.FIELD])
actual annotation class Volatile(source)

Since Kotlin

1.1
@Target(allowedTargets = [AnnotationTarget.FIELD])
actual annotation class Volatile(source)

Marks the JVM backing field of the annotated property as volatile, meaning that writes to this field are immediately made visible to other threads.

Since Kotlin

1.0