Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for finishToValueAndCloser (0.13 seconds)

  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(
            valueAndCloser -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5.2K bytes
    - Click Count (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(
            valueAndCloser -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *
       * @param consumer a callback whose method will be called (using {@code executor}) when this
       *     operation is done
       */
      public void finishToValueAndCloser(
          ValueAndCloserConsumer<? super V> consumer, Executor executor) {
        try {
          state.finishToValueAndCloser(consumer, executor);
        } finally {
          reachabilityFence(this);
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link ClosingFuture}. Subclasses exercise either the {@link
     * ClosingFuture#finishToFuture()} or {@link
     * ClosingFuture#finishToValueAndCloser(ValueAndCloserConsumer, Executor)} paths to complete a
     * {@link ClosingFuture} pipeline.
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public abstract class AbstractClosingFutureTest extends TestCase {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link ClosingFuture}. Subclasses exercise either the {@link
     * ClosingFuture#finishToFuture()} or {@link
     * ClosingFuture#finishToValueAndCloser(ValueAndCloserConsumer, Executor)} paths to complete a
     * {@link ClosingFuture} pipeline.
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public abstract class AbstractClosingFutureTest extends TestCase {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(closer -> closer.eventuallyClose(mockCloseable, executor), executor);
        closingFuture.finishToValueAndCloser(new NoOpValueAndCloserConsumer<>(), directExecutor());
        assertThrows(
            IllegalStateException.class,
            () -> {
              FluentFuture<Closeable> unused = closingFuture.finishToFuture();
            });
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(closer -> closer.eventuallyClose(mockCloseable, executor), executor);
        closingFuture.finishToValueAndCloser(new NoOpValueAndCloserConsumer<>(), directExecutor());
        assertThrows(
            IllegalStateException.class,
            () -> {
              FluentFuture<Closeable> unused = closingFuture.finishToFuture();
            });
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 3.3K bytes
    - Click Count (0)
Back to Top