Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 434 for _timeout (0.09 sec)

  1. src/test/java/jcifs/tests/WatchTest.java

                    cr.createNewFile();
                    assertNotified(w, FileNotifyInformation.FILE_ACTION_ADDED, "created", null);
                }
            }
            catch ( TimeoutException e ) {
                log.info("Timeout waiting", e);
                fail("Did not recieve notification");
            }
        }
    
    
        @Test
        public void testWatchModified () throws InterruptedException, ExecutionException, IOException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    import org.junit.jupiter.api.extension.RegisterExtension
    import org.junit.jupiter.params.ParameterizedTest
    import org.junit.jupiter.params.provider.ValueSource
    
    @Flaky // STDOUT logging enabled for test
    @Timeout(30)
    @Tag("Slow")
    open class ConnectionListenerTest {
      @RegisterExtension
      val platform = PlatformRule()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Service.java

      void awaitRunning();
    
      /**
       * Waits for the {@link Service} to reach the {@linkplain State#RUNNING running state} for no more
       * than the given time.
       *
       * @param timeout the maximum time to wait
       * @param unit the time unit of the timeout argument
       * @throws TimeoutException if the service has not reached the given state within the deadline
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. docs/recipes.md

    All the HTTP client configuration lives in `OkHttpClient` including proxy settings, timeouts, and caches. When you need to change the configuration of a single call, call `OkHttpClient.newBuilder()`. This returns a builder that shares the same connection pool, dispatcher, and configuration with the original client. In the example below, we make one request with a 500 ms timeout and another with a 3000 ms timeout.
    
    === ":material-language-kotlin: Kotlin"
        ```kotlin
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

          | * EventSourceListener
          | * WebSocketListener
          |(It is safe to call contentType() and contentLength() on these response bodies.)
          """.trimMargin(),
        )
      }
    
      override fun timeout() = Timeout.NONE
    
      override fun close() {
      }
    }
    
    fun Response.stripBody(): Response {
      return newBuilder()
        .body(UnreadableResponseBody(body.contentType(), body.contentLength()))
        .build()
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          assertTrue(thread.isAlive());
        }
      }
    
      /** Checks that future.get times out, with the default timeout of {@code timeoutMillis()}. */
      void assertFutureTimesOut(Future<?> future) {
        assertFutureTimesOut(future, timeoutMillis());
      }
    
      /** Checks that future.get times out, with the given millisecond timeout. */
      void assertFutureTimesOut(Future<?> future, long timeoutMillis) {
        long startTime = System.nanoTime();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java

    
    /**
     * @author mbechler
     *
     */
    public class SmbComLockingAndX extends AndXServerMessageBlock {
    
        private int fid;
        private byte typeOfLock;
        private byte newOpLockLevel;
        private long timeout;
        private LockingAndXRange[] locks;
        private LockingAndXRange[] unlocks;
        private boolean largeFile;
    
    
        /**
         * @param config
         */
        public SmbComLockingAndX ( Configuration config ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.9K bytes
    - Viewed (0)
  8. internal/logger/target/http/http.go

    	defer func() {
    		if err != nil {
    			if xnet.IsNetworkOrHostDown(err, false) {
    				h.status.Store(statusOffline)
    			}
    			h.failedMessages.Add(int64(payloadCount))
    		} else {
    			h.status.Store(statusOnline)
    		}
    	}()
    
    	ctx, cancel := context.WithTimeout(ctx, timeout)
    	defer cancel()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/InterceptorTest.kt

          call.execute()
        }
        val elapsedNanos = System.nanoTime() - startNanos
        org.junit.jupiter.api.Assertions.assertTrue(
          elapsedNanos < TimeUnit.SECONDS.toNanos(5),
          "Timeout should have taken ~100ms but was " + elapsedNanos / 1e6 + " ms",
        )
      }
    
      @Test
      fun chainWithReadTimeout() {
        val interceptor1 =
          Interceptor { chainA: Interceptor.Chain ->
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          assertTrue(thread.isAlive());
        }
      }
    
      /** Checks that future.get times out, with the default timeout of {@code timeoutMillis()}. */
      void assertFutureTimesOut(Future<?> future) {
        assertFutureTimesOut(future, timeoutMillis());
      }
    
      /** Checks that future.get times out, with the given millisecond timeout. */
      void assertFutureTimesOut(Future<?> future, long timeoutMillis) {
        long startTime = System.nanoTime();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top