Can't use volatile and synchronized in KMP project for iOS source set

360 Views Asked by At

I'm trying to develop a KMP library and I'm not able to use @Volatile and synchronized for iOS source set.

For @Volatile, the error is: Declaration annotated with '@OptionalExpectation' can only be used in common module sources

and, for synchronized, the error is: Unresolved reference: synchronized

How should I solve this issue?

0

There are 0 best solutions below