Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 553 for delay (0.04 sec)

  1. pkg/queue/delay.go

    func (d *delayQueue) Push(task Task) {
    	d.pushInternal(&delayTask{do: task, runAt: time.Now()})
    }
    
    // PushDelayed will execute the task after waiting for the delay
    func (d *delayQueue) PushDelayed(t Task, delay time.Duration) {
    	task := &delayTask{do: t, runAt: time.Now().Add(delay)}
    	d.pushInternal(task)
    }
    
    // pushInternal will enqueue the delayTask with retries.
    func (d *delayQueue) pushInternal(task *delayTask) {
    	select {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/delay.go

    type DelayFunc func() time.Duration
    
    // Timer takes an arbitrary delay function and returns a timer that can handle arbitrary interval changes.
    // Use Backoff{...}.Timer() for simple delays and more efficient timers.
    func (fn DelayFunc) Timer(c clock.Clock) Timer {
    	return &variableTimer{fn: fn, new: c.NewTimer}
    }
    
    // Until takes an arbitrary delay function and runs until cancelled or the condition indicates exit. This
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. releasenotes/notes/delay-app-start.yaml

    Brian Avery <******@****.***> 1597180858 -0400
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 11 21:20:58 UTC 2020
    - 242 bytes
    - Viewed (0)
  4. samples/bookinfo/networking/virtual-service-ratings-test-delay.yaml

    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: ratings
    spec:
      hosts:
      - ratings
      http:
      - match:
        - headers:
            end-user:
              exact: jason
        fault:
          delay:
            percentage:
              value: 100.0
            fixedDelay: 7s
        route:
        - destination:
            host: ratings
            subset: v1
      - route:
        - destination:
            host: ratings
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 22 12:35:03 UTC 2018
    - 422 bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_termination_order_test.go

    		wg.Add(1)
    		go waitAndExit(c.Name)
    	}
    
    	// wait for our simulated containers to exit
    	wg.Wait()
    
    	getDelay := func(name string) int64 {
    		delay, ok := delays.Load(name)
    		if !ok {
    			t.Errorf("unable to find delay for container %s", name)
    		}
    		return delay.(int64)
    	}
    
    	for _, tc := range []struct {
    		containerName string
    		expectedDelay int64
    	}{
    		// sidecars should exit in reverse order, so
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 00:07:21 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. pkg/test/util/retry/retry.go

    	return func(cfg *config) {
    		cfg.delay = delay
    		cfg.delayMax = delay
    	}
    }
    
    func BackoffDelay(delay time.Duration) Option {
    	return func(cfg *config) {
    		cfg.delay = delay
    		// Currently, hardcode to 16 backoffs. We can make it configurable if needed
    		cfg.delayMax = delay * 16
    	}
    }
    
    // Converge sets the number of successes in a row needed to count a success.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/ListeningScheduledExecutorService.java

      @Override
      ListenableScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit);
    
      /**
       * Duration-based overload of {@link #schedule(Runnable, long, TimeUnit)}.
       *
       * @since 29.0
       */
      default ListenableScheduledFuture<?> schedule(Runnable command, Duration delay) {
        return schedule(command, toNanosSaturated(delay), TimeUnit.NANOSECONDS);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. docs/en/docs/js/termynal.js

         * @param {string} options.prefix - Prefix to use for data attributes.
         * @param {number} options.startDelay - Delay before animation, in ms.
         * @param {number} options.typeDelay - Delay between each typed character, in ms.
         * @param {number} options.lineDelay - Delay between each line, in ms.
         * @param {number} options.progressLength - Number of characters displayed as progress bar.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  9. internal/config/scanner/scanner.go

    	delay := env.Get(EnvDelayLegacy, "")
    	if delay == "" {
    		delay = env.Get(EnvDelay, kvs.GetWithDefault(Delay, DefaultKVS))
    	}
    	cfg.Delay, err = strconv.ParseFloat(delay, 64)
    	if err != nil {
    		return err
    	}
    	maxWait := env.Get(EnvMaxWaitLegacy, "")
    	if maxWait == "" {
    		maxWait = env.Get(EnvMaxWait, kvs.GetWithDefault(MaxWait, DefaultKVS))
    	}
    	cfg.MaxWait, err = time.ParseDuration(maxWait)
    	if err != nil {
    		return err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

            while (!crawlerRunning) {
                ThreadUtil.sleepQuietly(crawlerWaitMillis);
            }
        }
    
        public void delayByRules() {
            final long delay = getDelay();
            if (delay > 0) {
                ThreadUtil.sleep(delay);
            }
        }
    
        protected long getDelay() {
            if (ruleList.isEmpty()) {
                return 0;
            }
            final Calendar cal = getCurrentCal();
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top