title: Difference between Lock.withLock and synchronized in Kotlin
body: <p>Is there a difference (other than preference) between</p>
  
  <pre><code>someLock.withLock {
      sharedResource.operation()
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>synchronized(someLock) {
      sharedResource.operation()
  }
  </code></pre>
  
  <p>in Kotlin?</p>