Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sleepUninterruptibly (0.11 sec)

  1. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @IgnoreJRERequirement // Users will use this only if they're already using Duration.
      public static void sleepUninterruptibly(Duration sleepFor) {
        sleepUninterruptibly(toNanosSaturated(sleepFor), TimeUnit.NANOSECONDS);
      }
    
      // TODO(user): Support Sleeper somehow (wrapper or interface method)?
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

            @Override
            public void run() {
              Uninterruptibles.sleepUninterruptibly(delay, MILLISECONDS);
              notifyStarted();
            }
          }.start();
        }
    
        @Override
        protected void doStop() {
          new Thread() {
            @Override
            public void run() {
              Uninterruptibles.sleepUninterruptibly(delay, MILLISECONDS);
              notifyStopped();
            }
          }.start();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        @Override
        protected void doAction() {}
      }
    
      private static void sleepSuccessfully(long sleepMillis) {
        Completion completed = new Completion(sleepMillis - SLEEP_SLACK);
        Uninterruptibles.sleepUninterruptibly(sleepMillis, MILLISECONDS);
        completed.assertCompletionExpected();
      }
    
      private static void assertTimeNotPassed(Stopwatch stopwatch, long timelimitMillis) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
Back to top