Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 487 for timeout (0.18 sec)

  1. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

          assertEquals(method, lastMethodCalled);
        }
    
        public void assertMethodWithTimeout(String method, long timeout, TimeUnit unit) {
          assertLastMethodCalled(method + "Timeout");
          assertEquals(unit.toMillis(timeout), lastTimeoutInMillis);
        }
    
        @Override
        public boolean awaitTermination(long timeout, TimeUnit unit) {
          lastMethodCalled = "awaitTermination";
          return false;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ForwardingExecutorService.java

      @Override
      protected abstract ExecutorService delegate();
    
      @CheckReturnValue
      @Override
      public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().awaitTermination(timeout, unit);
      }
    
      @Override
      public <T extends @Nullable Object> List<Future<T>> invokeAll(
          Collection<? extends Callable<T>> tasks) throws InterruptedException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

      override fun withConnectTimeout(
        timeout: Int,
        unit: TimeUnit,
      ): Interceptor.Chain {
        check(exchange == null) { "Timeouts can't be adjusted in a network interceptor" }
    
        return copy(connectTimeoutMillis = checkDuration("connectTimeout", timeout.toLong(), unit))
      }
    
      override fun readTimeoutMillis(): Int = readTimeoutMillis
    
      override fun withReadTimeout(
        timeout: Int,
        unit: TimeUnit,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

        private static final int SO_TIMEOUT = Config.getInt( "jcifs.smb1.netbios.soTimeout", DEFAULT_SO_TIMEOUT );
        private static final int RETRY_COUNT = Config.getInt( "jcifs.smb1.netbios.retryCount", DEFAULT_RETRY_COUNT );
        private static final int RETRY_TIMEOUT = Config.getInt( "jcifs.smb1.netbios.retryTimeout", DEFAULT_RETRY_TIMEOUT);
        private static final int LPORT = Config.getInt( "jcifs.smb1.netbios.lport", 0 );
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 17.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/UtilTest.kt

          },
        ).hasMessage("timeout too small")
        assertThat(
          assertThrows<IllegalArgumentException> {
            checkDuration(
              "timeout",
              1L + Int.MAX_VALUE.toLong(),
              TimeUnit.MILLISECONDS,
            )
          },
        ).hasMessage("timeout too large")
      }
    
      @Test
      fun testDurationDuration() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java

        delegate().putLast(e);
      }
    
      @Override
      public boolean offerFirst(E e, long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().offerFirst(e, timeout, unit);
      }
    
      @Override
      public boolean offerLast(E e, long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().offerLast(e, timeout, unit);
      }
    
      @Override
      public E takeFirst() throws InterruptedException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  7. internal/http/transports.go

    		return tr
    	}
    }
    
    // NewHTTPTransportWithTimeout allows setting a timeout for response headers
    func (s ConnSettings) NewHTTPTransportWithTimeout(timeout time.Duration) *http.Transport {
    	tr := s.getDefaultTransport(0)
    
    	// Settings specific to this transport.
    	tr.ResponseHeaderTimeout = timeout
    	return tr
    }
    
    // NewHTTPTransportWithClientCerts returns a new http configuration used for
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 00:50:37 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

          assertEquals(method, lastMethodCalled);
        }
    
        public void assertMethodWithTimeout(String method, long timeout, TimeUnit unit) {
          assertLastMethodCalled(method + "Timeout");
          assertEquals(unit.toMillis(timeout), lastTimeoutInMillis);
        }
    
        @Override
        public boolean awaitTermination(long timeout, TimeUnit unit) {
          lastMethodCalled = "awaitTermination";
          return false;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          throw InterruptedIOException()
        }
      }
    
      /**
       * The Okio timeout watchdog will call [timedOut] if the timeout is reached. In that case we close
       * the stream (asynchronously) which will notify the waiting thread.
       */
      internal inner class StreamTimeout : AsyncTimeout() {
        override fun timedOut() {
          closeLater(ErrorCode.CANCEL)
          connection.sendDegradedPingLater()
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/collect/Queues.java

       *
       * @param q the blocking queue to be drained
       * @param buffer where to add the transferred elements
       * @param numElements the number of elements to be waited for
       * @param timeout how long to wait before giving up, in units of {@code unit}
       * @param unit a {@code TimeUnit} determining how to interpret the timeout parameter
       * @return the number of elements transferred
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top