- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for getChecked (0.07 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Futures#getChecked(Future, Class)}. */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class FuturesGetCheckedTest extends TestCase { // Boring untimed-get tests: public void testGetCheckedUntimed_success() throws TwoArgConstructorException { assertThat(getChecked(immediateFuture("foo"), TwoArgConstructorException.class)) .isEqualTo("foo");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Futures#getChecked(Future, Class)}. */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class FuturesGetCheckedTest extends TestCase { // Boring untimed-get tests: public void testGetCheckedUntimed_success() throws TwoArgConstructorException { assertThat(getChecked(immediateFuture("foo"), TwoArgConstructorException.class)) .isEqualTo("foo");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
/** Static methods used to implement {@link Futures#getChecked(Future, Class)}. */ @J2ktIncompatible @GwtIncompatible final class FuturesGetChecked { @CanIgnoreReturnValue @ParametricNullness static <V extends @Nullable Object, X extends Exception> V getChecked( Future<V> future, Class<X> exceptionClass) throws X { return getChecked(bestGetCheckedTypeValidator(), future, exceptionClass); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 10.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
* Futures#getDone Futures.getDone}. * <li>To treat {@link InterruptedException} uniformly with other exceptions, use {@link * Futures#getChecked(Future, Class) Futures.getChecked}. * <li>To get uninterruptibility and remove checked exceptions, use {@link * Futures#getUnchecked}. * </ul> * * @throws ExecutionException if the computation threw an exception
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 23:24:32 GMT 2026 - 22.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
@J2ktIncompatible @GwtIncompatible // reflection @ParametricNullness public static <V extends @Nullable Object, X extends Exception> V getChecked( Future<V> future, Class<X> exceptionClass) throws X { return FuturesGetChecked.getChecked(future, exceptionClass); } /** * Returns the result of {@link Future#get(long, TimeUnit)}, converting most exceptions to a new
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 64.2K bytes - Click Count (0)