Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for doClose (0.05 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        val connection = this.connection
        if (connection != null) {
          connection.lock.assertNotHeld()
          val toClose: Socket? =
            connection.withLock {
              // Sets this.connection to null.
              releaseConnectionNoEvents()
            }
          if (this.connection == null) {
            toClose?.closeQuietly()
            eventListener.connectionReleased(this, connection)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          val noNewExchangesEvent: Boolean
          val toClose: Socket? =
            connection.withLock {
              noNewExchangesEvent = !connection.noNewExchanges
              connection.noNewExchanges = true
              connectionUser.releaseConnectionNoEvents()
            }
          if (toClose != null) {
            toClose.closeQuietly()
            connectionListener.connectionClosed(connection)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      private lateinit var cache: DiskLruCache
      private val toClose = ArrayDeque<DiskLruCache>()
    
      private fun createNewCache() {
        createNewCacheWithSize(Int.MAX_VALUE)
      }
    
      private fun createNewCacheWithSize(maxSize: Int) {
        cache =
          DiskLruCache(filesystem, cacheDir, appVersion, 2, maxSize.toLong(), taskRunner).also {
            toClose.add(it)
          }
        synchronized(cache) { cache.initialize() }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Streams.java

        return optional.isPresent() ? DoubleStream.of(optional.getAsDouble()) : DoubleStream.empty();
      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static void closeAll(BaseStream<?, ?>[] toClose) {
        // If one of the streams throws an exception, continue closing the others, then throw the
        // exception later. If more than one stream throws an exception, the later ones are added to the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Streams.java

        return optional.isPresent() ? DoubleStream.of(optional.getAsDouble()) : DoubleStream.empty();
      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static void closeAll(BaseStream<?, ?>[] toClose) {
        // If one of the streams throws an exception, continue closing the others, then throw the
        // exception later. If more than one stream throws an exception, the later ones are added to the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top