Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for copyFn (0.17 sec)

  1. cmd/admin-handlers.go

    	ctx, cancel := context.WithTimeout(ctx, madmin.MaxClientPerfTimeout)
    	defer cancel()
    	totalRx := int64(0)
    	connectTime := time.Now()
    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    		if err != nil && err != io.EOF && err != io.ErrUnexpectedEOF {
    			// would mean the network is not stable. Logging here will help in debugging network issues.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/LocalCache.java

       */
      @SuppressWarnings("serial") // This class is never serialized.
      static class Segment<K, V> extends ReentrantLock {
    
        /*
         * TODO(fry): Consider copying variables (like evictsBySize) from outer class into this class.
         * It will require more memory but will reduce indirection.
         */
    
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

       */
      @SuppressWarnings("serial") // This class is never serialized.
      static class Segment<K, V> extends ReentrantLock {
    
        /*
         * TODO(fry): Consider copying variables (like evictsBySize) from outer class into this class.
         * It will require more memory but will reduce indirection.
         */
    
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  4. src/net/http/server.go

    	w.canWriteContinue.Store(false)
    	w.writeContinueMu.Unlock()
    }
    
    // writerOnly hides an io.Writer value's optional ReadFrom method
    // from io.Copy.
    type writerOnly struct {
    	io.Writer
    }
    
    // ReadFrom is here to optimize copying from an [*os.File] regular file
    // to a [*net.TCPConn] with sendfile, or from a supported src type such
    // as a *net.TCPConn on Linux with splice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  5. src/reflect/value.go

    // purpose of this bitmap is to keep pointers visible to the GC between
    // returning from reflectcall and actually using them.
    //
    // If copying result bytes back from the stack, the caller must pass the
    // argument frame type as stackArgsType, so that call can execute appropriate
    // write barriers during the copy.
    //
    // Arguments passed through to call do not escape. The type is used only in a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    	Traverse(func(AST) bool)
    
    	// Copy an AST with possible transformations.
    	// If the skip function returns true, no copy is required.
    	// If the copy function returns nil, no copy is required.
    	// The Copy method will do the right thing if copy returns nil
    	// for some components of an AST but not others, so a good
    	// copy function will only return non-nil for AST values that
    	// need to change.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  7. src/net/http/serve_test.go

    		done := make(chan bool)
    		go func() {
    			io.Copy(rw, pr)
    			close(done)
    		}()
    		time.Sleep(25 * time.Millisecond) // give Copy a chance to break things
    		n, err := io.Copy(io.Discard, req.Body)
    		if err != nil {
    			t.Errorf("handler Copy: %v", err)
    			return
    		}
    		if n != size {
    			t.Errorf("handler Copy = %d; want %d", n, size)
    		}
    		pw.Write([]byte("hi"))
    		pw.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

              }
    
              Node* copy;
              if (node_map.find(n) != node_map.end()) {
                // Already copied this node.
                copy = node_map.at(n);
              } else if (IsKeyPlaceholderNode(*n)) {
                // Change a).
                copy = key_placeholder;
                node_map[n] = copy;
              } else {
                // Copy the node.
                NodeDef copy_def = n->def();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/ClosingFuture.java

        private Combiner(boolean allMustSucceed, Iterable<? extends ClosingFuture<?>> inputs) {
          this.allMustSucceed = allMustSucceed;
          this.inputs = ImmutableList.copyOf(inputs);
          for (ClosingFuture<?> input : inputs) {
            input.becomeSubsumedInto(closeables);
          }
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 98.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          // stack trace of where the get() call was made, and the inner should have the stack trace of
          // where the immediateCancelledFuture() call was made.
          List<StackTraceElement> stackTrace = ImmutableList.copyOf(expected.getStackTrace());
          assertFalse(Iterables.any(stackTrace, hasClassName(CallerClass1.class)));
          assertTrue(Iterables.any(stackTrace, hasClassName(CallerClass2.class)));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
Back to top