mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
22 lines
973 B
Java
22 lines
973 B
Java
package com.google.common.util.concurrent;
|
|
|
|
import com.google.errorprone.annotations.DoNotMock;
|
|
import java.util.concurrent.Callable;
|
|
import java.util.concurrent.ExecutionException;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeoutException;
|
|
|
|
@DoNotMock("Use FakeTimeLimiter")
|
|
@ElementTypesAreNonnullByDefault
|
|
/* loaded from: classes3.dex */
|
|
public interface TimeLimiter {
|
|
<T> T callUninterruptiblyWithTimeout(Callable<T> callable, long j, TimeUnit timeUnit) throws TimeoutException, ExecutionException;
|
|
|
|
<T> T callWithTimeout(Callable<T> callable, long j, TimeUnit timeUnit) throws TimeoutException, InterruptedException, ExecutionException;
|
|
|
|
<T> T newProxy(T t, Class<T> cls, long j, TimeUnit timeUnit);
|
|
|
|
void runUninterruptiblyWithTimeout(Runnable runnable, long j, TimeUnit timeUnit) throws TimeoutException;
|
|
|
|
void runWithTimeout(Runnable runnable, long j, TimeUnit timeUnit) throws TimeoutException, InterruptedException;
|
|
}
|