Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Rings (0.03 sec)

  1. src/container/ring/ring.go

    // Package ring implements operations on circular lists.
    package ring
    
    // A Ring is an element of a circular list, or ring.
    // Rings do not have a beginning or end; a pointer to any ring element
    // serves as reference to the entire ring. Empty rings are represented
    // as nil Ring pointers. The zero value for a Ring is a one-element
    // ring with a nil Value.
    type Ring struct {
    	next, prev *Ring
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. src/container/ring/example_test.go

    	r.Do(func(p any) {
    		fmt.Println(p.(int))
    	})
    
    	// Output:
    	// 3
    	// 4
    	// 0
    	// 1
    	// 2
    }
    
    func ExampleRing_Link() {
    	// Create two rings, r and s, of size 2
    	r := ring.New(2)
    	s := ring.New(2)
    
    	// Get the length of the ring
    	lr := r.Len()
    	ls := s.Len()
    
    	// Initialize r with 0s
    	for i := 0; i < lr; i++ {
    		r.Value = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  3. docs/en/docs/python-types.md

    At the same point, you try to trigger the autocomplete with `Ctrl+Space` and you see:
    
    <img src="/img/python-types/image02.png">
    
    With that, you can scroll, seeing the options, until you find the one that "rings a bell":
    
    <img src="/img/python-types/image03.png">
    
    ## More motivation
    
    Check this function, it already has type hints:
    
    ```Python hl_lines="1"
    {!../../../docs_src/python_types/tutorial003.py!}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 31 02:38:05 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/verification/DependencyVerificationSignatureCheckIntegTest.groovy

            assertConfigCacheDiscarded()
        }
    
        @Issue("https://github.com/gradle/gradle/issues/19663")
        def "fails when disabling reaching out to key servers after previous successful build and no key rings file"() {
            given:
            createMetadataFile {
                keyServer(keyServerFixture.uri)
                verifySignatures()
                addTrustedKey("org:foo:1.0", validPublicKeyHexString)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 75.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go

    			srvErr <- fmt.Errorf("server: timeout waiting for connection to close")
    			return
    		case <-srvSPDYConn.CloseChan():
    		}
    
    		// Count pings sent by the server.
    		gotPings := atomic.LoadInt64(&pingsSent)
    		if gotPings < 1 {
    			t.Errorf("server: failed to send any pings (check logs)")
    		}
    	}()
    
    	// Set up client connection.
    	clConn, err := net.Dial("tcp4", listener.Addr().String())
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 11:58:57 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. pkg/keepalive/options.go

    // whereas MaxServerConnectionAge* options are applicable on the server side only
    // (as implied by the options' name...)
    type Options struct {
    	// After a duration of this time if the server/client doesn't see any activity it pings the peer to see if the transport is still alive.
    	Time time.Duration
    	// After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen even after that
    	// the connection is closed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/locklistener/FileLockContentionHandler.java

    @ServiceScope(Scope.Global.class)
    public interface FileLockContentionHandler {
        void start(long lockId, Consumer<FileLockReleasedSignal> whenContended);
    
        void stop(long lockId);
    
        int reservePort();
    
        /**
         * Pings the lock owner with the give port to start the lock releasing
         * process in the owner. May not ping the owner if:
         * - The owner was already pinged about the given lock before and the lock release is in progress
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 01:28:02 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      /** True if this web socket failed and the listener has been notified. */
      private var failed = false
    
      /** Total number of pings sent by this web socket. */
      private var sentPingCount = 0
    
      /** Total number of pings received by this web socket. */
      private var receivedPingCount = 0
    
      /** Total number of pongs received by this web socket. */
      private var receivedPongCount = 0
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/PropertyAccessorTypeTest.groovy

            propertyNames.contains("ccCompiler")
            propertyNames.contains("idore")
            propertyNames.contains("tings")
        }
    
        def "deviant bean properties are considered as such by Groovy"() {
            when:
            def bean = new DeviantBean()
            bean.tings = 'Some settings'
    
            then:
            bean.tingStarted == 'Getting started!'
            bean.idore == true
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  10. internal/s3select/sql/jsonpath_test.go

    		participle.CaseInsensitive("Keyword"),
    	)
    	cases := []struct {
    		str string
    		res []interface{}
    	}{
    		{"s.title", []interface{}{"Murder on the Orient Express", "The Robots of Dawn", "Pigs Have Wings"}},
    		{"s.authorInfo.yearRange", []interface{}{[]interface{}{1890.0, 1976.0}, []interface{}{1920.0, 1992.0}, []interface{}{1881.0, 1975.0}}},
    		{"s.authorInfo.name", []interface{}{"Agatha Christie", "Isaac Asimov", "P. G. Wodehouse"}},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top