Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for callsInPlace (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/Lockable.kt

        throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
      }
    }
    
    @OptIn(ExperimentalContracts::class)
    inline fun <T> Lockable.withLock(action: () -> T): T {
      contract { callsInPlace(action, InvocationKind.EXACTLY_ONCE) }
      return synchronized(this, action)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top