Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 420 for Unit (0.12 sec)

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

      @Override
      @ParametricNullness
      public V get() {
        return value;
      }
    
      @Override
      @ParametricNullness
      public V get(long timeout, TimeUnit unit) throws ExecutionException {
        checkNotNull(unit);
        return get();
      }
    
      @Override
      public boolean isCancelled() {
        return false;
      }
    
      @Override
      public boolean isDone() {
        return true;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * @param unit the time unit of the time parameter
       * @param scheduledExecutor The executor service to enforce the timeout.
       */
      @J2ktIncompatible
      @GwtIncompatible // ScheduledExecutorService
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public final FluentFuture<V> withTimeout(
          long timeout, TimeUnit unit, ScheduledExecutorService scheduledExecutor) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

        }
    
        @Override
        public V get(long timeout, TimeUnit unit)
            throws InterruptedException, ExecutionException, TimeoutException {
          Preconditions.checkNotNull(unit, "unit must not be null!");
          return get();
        }
    
        @Override
        public long getDelay(TimeUnit unit) {
          Preconditions.checkNotNull(unit, "unit must not be null!");
          return 0;
        }
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/WrappingExecutorService.java

      }
    
      @Override
      public final <T extends @Nullable Object> List<Future<T>> invokeAll(
          Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
          throws InterruptedException {
        return delegate.invokeAll(wrapTasks(tasks), timeout, unit);
      }
    
      @Override
      public final <T extends @Nullable Object> T invokeAny(Collection<? extends Callable<T>> tasks)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

       * uninterruptibly.
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static boolean awaitUninterruptibly(CountDownLatch latch, long timeout, TimeUnit unit) {
        boolean interrupted = false;
        try {
          long remainingNanos = unit.toNanos(timeout);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

        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);
          assertEquals(initialDelay, lastInitialDelay);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 7.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

        private final TimeUnit unit;
    
        private DurationSpec(long duration, TimeUnit unit) {
          this.duration = duration;
          this.unit = unit;
        }
    
        public static DurationSpec of(long duration, TimeUnit unit) {
          return new DurationSpec(duration, unit);
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(duration, unit);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. guava-tests/pom.xml

      <parent>
        <groupId>com.google.guava</groupId>
        <artifactId>guava-parent</artifactId>
        <version>HEAD-jre-SNAPSHOT</version>
      </parent>
      <artifactId>guava-tests</artifactId>
      <name>Guava Unit Tests</name>
      <description>
        The unit tests for the Guava libraries - separated into a
        separate artifact to allow for the testlibs to depend on guava
        itself.
      </description>
      <dependencies>
        <dependency>
    XML
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Aug 07 19:01:53 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

        }
        {
          MockExecutor mock = new MockExecutor();
          TimeUnit unit = TimeUnit.SECONDS;
          long timeout = 5;
          TestExecutor testExecutor = new TestExecutor(mock);
          List<Future<String>> futures = testExecutor.invokeAll(tasks, timeout, unit);
          mock.assertMethodWithTimeout("invokeAll", timeout, unit);
          checkResults(futures);
        }
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  10. 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(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 2.4K bytes
    - Viewed (0)
Back to top