mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
27 lines
866 B
Java
27 lines
866 B
Java
![]() |
package androidx.work.multiprocess;
|
||
|
|
||
|
import androidx.work.OneTimeWorkRequest;
|
||
|
import com.google.common.util.concurrent.ListenableFuture;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class RemoteWorkContinuation {
|
||
|
protected abstract RemoteWorkContinuation combineInternal(List<RemoteWorkContinuation> continuations);
|
||
|
|
||
|
public abstract ListenableFuture<Void> enqueue();
|
||
|
|
||
|
public abstract RemoteWorkContinuation then(List<OneTimeWorkRequest> work);
|
||
|
|
||
|
protected RemoteWorkContinuation() {
|
||
|
}
|
||
|
|
||
|
public final RemoteWorkContinuation then(OneTimeWorkRequest work) {
|
||
|
return then(Collections.singletonList(work));
|
||
|
}
|
||
|
|
||
|
public static RemoteWorkContinuation combine(List<RemoteWorkContinuation> continuations) {
|
||
|
return continuations.get(0).combineInternal(continuations);
|
||
|
}
|
||
|
}
|