Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 553 for delay (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/main/java/jcifs/smb1/smb1/TestLocking.java

                long delay;
    
                do {
                    delay = 2L;
    
                    synchronized (t) {
                        long expire = t.ltime + t.delay;
                        long ctime = System.currentTimeMillis();
    
                        if (expire > ctime)
                            delay = expire - ctime;
                    }
    
    if (delay > 2)
    System.out.println("delay=" + delay);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          delay(SMALL_DELAY_MS);
          return Boolean.TRUE;
        }
      }
    
      public class MediumRunnable extends CheckedRunnable {
        @Override
        protected void realRun() throws Throwable {
          delay(MEDIUM_DELAY_MS);
        }
      }
    
      public class MediumInterruptedRunnable extends CheckedInterruptedRunnable {
        @Override
        protected void realRun() throws InterruptedException {
          delay(MEDIUM_DELAY_MS);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          delay(SMALL_DELAY_MS);
          return Boolean.TRUE;
        }
      }
    
      public class MediumRunnable extends CheckedRunnable {
        @Override
        protected void realRun() throws Throwable {
          delay(MEDIUM_DELAY_MS);
        }
      }
    
      public class MediumInterruptedRunnable extends CheckedInterruptedRunnable {
        @Override
        protected void realRun() throws InterruptedException {
          delay(MEDIUM_DELAY_MS);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/server/healthz.go

    func (reg *healthCheckRegistry) addDelayedHealthChecks(delay time.Duration, checks ...healthz.HealthChecker) error {
    	if delay > 0 && reg.clock == nil {
    		return fmt.Errorf("nil clock in healthCheckRegistry for %s endpoint", reg.path)
    	}
    	reg.lock.Lock()
    	defer reg.lock.Unlock()
    	if reg.checksInstalled {
    		return fmt.Errorf("unable to add because the %s endpoint has already been created", reg.path)
    	}
    	if delay > 0 {
    		for _, check := range checks {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        long lastDelay;
        TimeUnit lastUnit;
    
        void assertLastMethodCalled(String method, long delay, TimeUnit unit) {
          assertEquals(method, lastMethodCalled);
          assertEquals(delay, lastDelay);
          assertEquals(unit, lastUnit);
        }
    
        void assertLastMethodCalled(String method, long initialDelay, long delay, TimeUnit unit) {
          assertEquals(method, lastMethodCalled);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 7.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ManagedScheduledExecutorImpl.java

        }
    
        @Override
        public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
            return delegate.schedule(trackedCommand(command), delay, unit);
        }
    
        @Override
        public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
            return delegate.schedule(trackedCommand(callable), delay, unit);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top