Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for DELAY (0.04 sec)

  1. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

            this.delay = delay;
            this.unit = checkNotNull(unit);
          }
    
          /**
           * @param delay the time from now to delay execution
           * @since 31.1
           */
          public Schedule(Duration delay) {
            this(toNanosSaturated(delay), NANOSECONDS);
          }
        }
    
        /**
         * Calculates the time at which to next invoke the task.
         *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  2. 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)
  3. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

         * A value object that represents an absolute delay until a task should be invoked.
         *
         * @author Luke Sandberg
         * @since 11.0
         */
        protected static final class Schedule {
    
          private final long delay;
          private final TimeUnit unit;
    
          /**
           * @param delay the time from now to delay execution
           * @param unit the time unit of the delay parameter
           */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  4. 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)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        }
    
        /**
         * Set the delayed time of the response body to [delay]. This applies to the response body
         * only; response headers are not affected.
         */
        fun bodyDelay(
          delay: Long,
          unit: TimeUnit,
        ) = apply {
          bodyDelayNanos = unit.toNanos(delay)
        }
    
        fun headersDelay(
          delay: Long,
          unit: TimeUnit,
        ) = apply {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/time/sleep_test.go

    func adjustDelay(t *testing.T, delay Duration) Duration {
    	if haveHighResSleep {
    		return delay
    	}
    	t.Log("adjusting delay for low resolution sleep")
    	switch runtime.GOOS {
    	case "windows":
    		return delay - 17*Millisecond
    	default:
    		t.Fatal("adjustDelay unimplemented on " + runtime.GOOS)
    		return 0
    	}
    }
    
    func TestSleep(t *testing.T) {
    	const delay = 100 * Millisecond
    	go func() {
    		Sleep(delay / 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  7. src/image/gif/writer_test.go

    	}
    	if len(g0.Image) != len(g1.Image) {
    		t.Fatalf("image lengths differ: %d and %d", len(g0.Image), len(g1.Image))
    	}
    	if len(g1.Image) != len(g1.Delay) {
    		t.Fatalf("image and delay lengths differ: %d and %d", len(g1.Image), len(g1.Delay))
    	}
    	if len(g1.Image) != len(g1.Disposal) {
    		t.Fatalf("image and disposal lengths differ: %d and %d", len(g1.Image), len(g1.Disposal))
    	}
    
    	for i := range g0.Image {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      boolean called = false;
    
      private void assertSingleCallWithCorrectParameters(
          Runnable command, long initialDelay, long delay, TimeUnit unit) {
        assertFalse(called); // only called once.
        called = true;
        assertEquals(INITIAL_DELAY, initialDelay);
        assertEquals(DELAY, delay);
        assertEquals(UNIT, unit);
        assertEquals(testRunnable, command);
      }
    
      public void testFixedRateSchedule() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      boolean called = false;
    
      private void assertSingleCallWithCorrectParameters(
          Runnable command, long initialDelay, long delay, TimeUnit unit) {
        assertFalse(called); // only called once.
        called = true;
        assertEquals(INITIAL_DELAY, initialDelay);
        assertEquals(DELAY, delay);
        assertEquals(UNIT, unit);
        assertEquals(testRunnable, command);
      }
    
      public void testFixedRateSchedule() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  10. cmd/batch-rotate.go

    		return err
    	}
    	if ri.Complete {
    		return nil
    	}
    
    	globalBatchJobsMetrics.save(job.ID, ri)
    	lastObject := ri.Object
    
    	delay := job.KeyRotate.Flags.Retry.Delay
    	if delay == 0 {
    		delay = batchKeyRotateJobDefaultRetryDelay
    	}
    
    	rnd := rand.New(rand.NewSource(time.Now().UnixNano()))
    
    	selectObj := func(info FileInfo) (ok bool) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top