Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for finishToValueAndCloser (0.17 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        ValueAndCloser<?> unused = finishToValueAndCloser(closingFuture);
        waitUntilClosed(closingFuture);
        futureCancelled.countDown();
      }
    
      private <V> ValueAndCloser<V> finishToValueAndCloser(ClosingFuture<V> closingFuture) {
        CountDownLatch valueAndCloserSet = new CountDownLatch(1);
        closingFuture.finishToValueAndCloser(
            new ValueAndCloserConsumer<V>() {
              @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        ValueAndCloser<?> unused = finishToValueAndCloser(closingFuture);
        waitUntilClosed(closingFuture);
        futureCancelled.countDown();
      }
    
      private <V> ValueAndCloser<V> finishToValueAndCloser(ClosingFuture<V> closingFuture) {
        CountDownLatch valueAndCloserSet = new CountDownLatch(1);
        closingFuture.finishToValueAndCloser(
            new ValueAndCloserConsumer<V>() {
              @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *     operation is done
       */
      public void finishToValueAndCloser(
          ValueAndCloserConsumer<? super V> consumer, Executor executor) {
        checkNotNull(consumer);
        if (!compareAndUpdateState(OPEN, WILL_CREATE_VALUE_AND_CLOSER)) {
          switch (state.get()) {
            case SUBSUMED:
              throw new IllegalStateException(
                  "Cannot call finishToValueAndCloser() after deriving another step");
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 13:51:27 UTC 2025
    - 96.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

                    return closer.eventuallyClose(mockCloseable, executor);
                  }
                },
                executor);
        closingFuture.finishToValueAndCloser(new NoOpValueAndCloserConsumer<>(), directExecutor());
        assertThrows(
            IllegalStateException.class,
            () -> {
              FluentFuture<Closeable> unused = closingFuture.finishToFuture();
            });
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top