- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for Rings (0.06 sec)
-
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) -
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) -
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) -
internal/s3select/sql/jsondata/books.json
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.9K bytes - Viewed (0) -
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) -
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) -
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) -
src/internal/fuzz/worker_test.go
mem.header().count = 0 ws.fuzz(context.Background(), fuzzArgs{Limit: 1}) } } // BenchmarkWorkerPing acts as the coordinator and measures the time it takes // a worker to respond to N pings. This is a rough measure of our RPC latency. func BenchmarkWorkerPing(b *testing.B) { if race.Enabled { b.Skip("TODO(48504): fix and re-enable") } b.SetParallelism(1) w := newWorkerForTest(b)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4.8K bytes - Viewed (0)