Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 602 for waits (0.07 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    		defer c.watchCache.RUnlock()
    		return err
    	}
    	return nil
    }
    
    // Wait blocks until the cacher is Ready or Stopped, it returns an error if Stopped.
    func (c *Cacher) Wait(ctx context.Context) error {
    	return c.ready.wait(ctx)
    }
    
    // errWatcher implements watch.Interface to return a single error
    type errWatcher struct {
    	result chan watch.Event
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. src/encoding/json/encode.go

    	// indirect func before we build it. This type waits on the
    	// real func (f) to be ready and then calls it. This indirect
    	// func is only used for recursive types.
    	var (
    		wg sync.WaitGroup
    		f  encoderFunc
    	)
    	wg.Add(1)
    	fi, loaded := encoderCache.LoadOrStore(t, encoderFunc(func(e *encodeState, v reflect.Value, opts encOpts) {
    		wg.Wait()
    		f(e, v, opts)
    	}))
    	if loaded {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  3. src/net/http/transport.go

    	// ResponseHeaderTimeout, if non-zero, specifies the amount of
    	// time to wait for a server's response headers after fully
    	// writing the request (including its body, if any). This
    	// time does not include the time to read the response body.
    	ResponseHeaderTimeout time.Duration
    
    	// ExpectContinueTimeout, if non-zero, specifies the amount of
    	// time to wait for a server's first response headers after fully
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server.go

    		s.httpsAddr = httpsListener.Addr().String()
    	}
    
    	s.waitForShutdown(stop)
    
    	return nil
    }
    
    // WaitUntilCompletion waits for everything marked as a "required termination" to complete.
    // This should be called before exiting.
    func (s *Server) WaitUntilCompletion() {
    	s.server.Wait()
    }
    
    // initSDSServer starts the SDS server
    func (s *Server) initSDSServer() {
    	if s.kubeClient == nil {
    		return
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  5. src/net/http/h2_bundle.go

    	*cw = make(chan struct{})
    }
    
    // Close marks the closeWaiter as closed and unblocks any waiters.
    func (cw http2closeWaiter) Close() {
    	close(cw)
    }
    
    // Wait waits for the closeWaiter to become closed.
    func (cw http2closeWaiter) Wait() {
    	<-cw
    }
    
    // bufferedWriter is a buffered writer that writes to w.
    // Its buffered writer is lazily allocated as needed, to minimize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  6. src/database/sql/sql.go

    func (db *DB) Stats() DBStats {
    	wait := db.waitDuration.Load()
    
    	db.mu.Lock()
    	defer db.mu.Unlock()
    
    	stats := DBStats{
    		MaxOpenConnections: db.maxOpen,
    
    		Idle:            len(db.freeConn),
    		OpenConnections: db.numOpen,
    		InUse:           db.numOpen - len(db.freeConn),
    
    		WaitCount:         db.waitCount,
    		WaitDuration:      time.Duration(wait),
    		MaxIdleClosed:     db.maxIdleClosed,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller.go

    	if !cache.WaitForNamedCacheSync("job", ctx.Done(), jm.podStoreSynced, jm.jobStoreSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, jm.worker, time.Second)
    	}
    
    	go wait.UntilWithContext(ctx, jm.orphanWorker, time.Second)
    
    	<-ctx.Done()
    }
    
    // getPodJobs returns a list of Jobs that potentially match a Pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  8. src/crypto/tls/conn.go

    		c.quic.cancel = cancel
    	} else if ctx.Done() != nil {
    		// Start the "interrupter" goroutine, if this context might be canceled.
    		// (The background context cannot).
    		//
    		// The interrupter goroutine waits for the input context to be done and
    		// closes the connection if this happens before the function returns.
    		done := make(chan struct{})
    		interruptRes := make(chan error, 1)
    		defer func() {
    			close(done)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/LocalCache.java

        }
      }
    
      /** A reference to a value. */
      interface ValueReference<K, V> {
        /** Returns the value. Does not block or throw exceptions. */
        @CheckForNull
        V get();
    
        /**
         * Waits for a value that may still be loading. Unlike get(), this method can block (in the case
         * of FutureValueReference).
         *
         * @throws ExecutionException if the loading thread throws an exception
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

        }
      }
    
      /** A reference to a value. */
      interface ValueReference<K, V> {
        /** Returns the value. Does not block or throw exceptions. */
        @CheckForNull
        V get();
    
        /**
         * Waits for a value that may still be loading. Unlike get(), this method can block (in the case
         * of FutureValueReference).
         *
         * @throws ExecutionException if the loading thread throws an exception
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top