Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 257 for Closest (0.1 sec)

  1. src/internal/trace/gc.go

    	c.mmu(window, &acc)
    	return acc.mmu
    }
    
    // Examples returns n specific examples of the lowest mutator
    // utilization for the given window size. The returned windows will be
    // disjoint (otherwise there would be a huge number of
    // mostly-overlapping windows at the single lowest point). There are
    // no guarantees on which set of disjoint windows this returns.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    		// Afterwards the final priorities can be calculted from 0 (highest) to N (lowest) without skipping.
    		priorityInt := int(loadAssignment.Endpoints[i].Priority*5) + priority
    		loadAssignment.Endpoints[i].Priority = uint32(priorityInt)
    		priorityMap[priorityInt] = append(priorityMap[priorityInt], i)
    	}
    
    	// since Priorities should range from 0 (highest) to N (lowest) without skipping.
    	// 2. adjust the priorities in order
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. internal/ioutil/ioutil.go

    // to the peer.
    type WriteOnCloser struct {
    	io.Writer
    	hasWritten bool
    }
    
    func (w *WriteOnCloser) Write(p []byte) (int, error) {
    	w.hasWritten = true
    	return w.Writer.Write(p)
    }
    
    // Close closes the WriteOnCloser. It behaves like io.Closer.
    func (w *WriteOnCloser) Close() error {
    	if !w.hasWritten {
    		_, err := w.Write(nil)
    		if err != nil {
    			return err
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. src/net/http/httptest/server.go

    	}
    	log.Print(buf.String())
    }
    
    // CloseClientConnections closes any open HTTP connections to the test Server.
    func (s *Server) CloseClientConnections() {
    	s.mu.Lock()
    	nconn := len(s.conns)
    	ch := make(chan struct{}, nconn)
    	for c := range s.conns {
    		go s.closeConnChan(c, ch)
    	}
    	s.mu.Unlock()
    
    	// Wait for outstanding closes to finish.
    	//
    	// Out of paranoia for making a late change in Go 1.6, we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:26:10 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/invocation/DefaultGradleSpec.groovy

            gradle.settings == settings
        }
    
        def "closes settings when replaced"() {
            def state1 = Mock(SettingsState)
            def state2 = Stub(SettingsState)
    
            given:
            gradle.attachSettings(state1)
    
            when:
            gradle.attachSettings(state2)
    
            then:
            1 * state1.close()
        }
    
        def "closes settings when discarded"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    }
    
    /** Returns an immutable list containing [elements]. */
    @SafeVarargs
    internal fun <T> immutableListOf(vararg elements: T): List<T> {
      return Collections.unmodifiableList(listOf(*elements.clone()))
    }
    
    /** Closes this, ignoring any checked exceptions. */
    internal fun Socket.closeQuietly() {
      try {
        close()
      } catch (e: AssertionError) {
        throw e
      } catch (rethrown: RuntimeException) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. src/net/smtp/smtp.go

    	if err != nil {
    		text.Close()
    		return nil, err
    	}
    	c := &Client{Text: text, conn: conn, serverName: host, localName: "localhost"}
    	_, c.tls = conn.(*tls.Conn)
    	return c, nil
    }
    
    // Close closes the connection.
    func (c *Client) Close() error {
    	return c.Text.Close()
    }
    
    // hello runs a hello exchange if needed.
    func (c *Client) hello() error {
    	if !c.didHello {
    		c.didHello = true
    		err := c.ehlo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/Closer.java

    import java.util.Deque;
    import java.util.logging.Level;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            fails("check", "--continue")
            failure.assertHasCause("Invalid rulesMinimumPriority '11'.  Valid range 1 (highest) to 5 (lowest).")
            // pmdMain and pmdTest
            failure.assertHasFailures(2)
        }
    
        def "gets reasonable message when priority level threshold is out of range from task"() {
            goodCode()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Closer.java

    import java.util.Deque;
    import java.util.logging.Level;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top