Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for timediv (0.23 sec)

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

                  ListenableFuture<String> a, ListenableFuture<String> b) {
                return successfulAsList(ImmutableSet.of(a, b));
              }
            };
      }
    
      /**
       * Very rough equivalent of a timed get, produced by calling the no-arg get method in another
       * thread and waiting a short time for it.
       *
       * <p>We need this to test the behavior of no-arg get methods without hanging the main test thread
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

                  ListenableFuture<String> a, ListenableFuture<String> b) {
                return successfulAsList(ImmutableSet.of(a, b));
              }
            };
      }
    
      /**
       * Very rough equivalent of a timed get, produced by calling the no-arg get method in another
       * thread and waiting a short time for it.
       *
       * <p>We need this to test the behavior of no-arg get methods without hanging the main test thread
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  3. src/net/http/serve_test.go

    		cst := newClientServerTest(t, mode, HandlerFunc(func(res ResponseWriter, req *Request) {
    			_, err := io.Copy(io.Discard, req.Body)
    			if !errors.Is(err, os.ErrDeadlineExceeded) {
    				t.Errorf("server timed out reading request body: got err %v; want os.ErrDeadlineExceeded", err)
    			}
    			res.Write([]byte(respBody))
    		}), func(ts *httptest.Server) {
    			ts.Config.ReadHeaderTimeout = -1 // don't time out while reading headers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  4. src/net/http/server.go

    	return &timeoutHandler{
    		handler: h,
    		body:    msg,
    		dt:      dt,
    	}
    }
    
    // ErrHandlerTimeout is returned on [ResponseWriter] Write calls
    // in handlers which have timed out.
    var ErrHandlerTimeout = errors.New("http: Handler timeout")
    
    type timeoutHandler struct {
    	handler Handler
    	body    string
    	dt      time.Duration
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top