Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 451 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/runtime/netpoll_epoll.go

    // Returns list of goroutines that become runnable.
    // delay < 0: blocks indefinitely
    // delay == 0: does not block, just polls
    // delay > 0: block for up to that many nanoseconds
    func netpoll(delay int64) (gList, int32) {
    	if epfd == -1 {
    		return gList{}, 0
    	}
    	var waitms int32
    	if delay < 0 {
    		waitms = -1
    	} else if delay == 0 {
    		waitms = 0
    	} else if delay < 1e6 {
    		waitms = 1
    	} else if delay < 1e15 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/WrappingScheduledExecutorService.java

      }
    
      @Override
      public final ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
        return delegate.schedule(wrapTask(command), delay, unit);
      }
    
      @Override
      public final <V extends @Nullable Object> ScheduledFuture<V> schedule(
          Callable<V> task, long delay, TimeUnit unit) {
        return delegate.schedule(wrapTask(task), delay, unit);
      }
    
      @Override
      public final ScheduledFuture<?> scheduleAtFixedRate(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/atmostevery.go

    // duration.
    type AtMostEvery struct {
    	delay    time.Duration
    	lastCall time.Time
    	mutex    sync.Mutex
    }
    
    // NewAtMostEvery creates a new AtMostEvery, that will run the method at
    // most every given duration.
    func NewAtMostEvery(delay time.Duration) *AtMostEvery {
    	return &AtMostEvery{
    		delay: delay,
    	}
    }
    
    // updateLastCall returns true if the lastCall time has been updated,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top