Is it valid kotlin to apply the `@Synchronized` an...
# announcements
a
Is it valid kotlin to apply the
@Synchronized
annotation on the setters referring to backing fields i.e.
Copy code
private var headsetState = DEFAULT_HEADSET_STATE
    @Synchronized
    private set(value) {
      field = value
      headsetStateSubject.onNext(field)
    }