mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
40 lines
2.9 KiB
Java
40 lines
2.9 KiB
Java
package androidx.paging;
|
|
|
|
import kotlin.Metadata;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlinx.coroutines.BuildersKt;
|
|
import kotlinx.coroutines.CoroutineDispatcher;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0000\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u0002*\b\b\u0001\u0010\u0003*\u00020\u00022\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00030\u00050\u0004B'\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0018\u0010\b\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00050\u0004¢\u0006\u0002\u0010\tJ\u001d\u0010\n\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0005H\u0086@ø\u0001\u0000¢\u0006\u0002\u0010\u000bJ\u0015\u0010\f\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0005H\u0096\u0002R \u0010\b\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00050\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\r"}, d2 = {"Landroidx/paging/SuspendingPagingSourceFactory;", "Key", "", "Value", "Lkotlin/Function0;", "Landroidx/paging/PagingSource;", "dispatcher", "Lkotlinx/coroutines/CoroutineDispatcher;", "delegate", "(Lkotlinx/coroutines/CoroutineDispatcher;Lkotlin/jvm/functions/Function0;)V", "create", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "invoke", "paging-common"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes14.dex */
|
|
public final class SuspendingPagingSourceFactory<Key, Value> implements Function0<PagingSource<Key, Value>> {
|
|
|
|
@NotNull
|
|
private final Function0<PagingSource<Key, Value>> delegate;
|
|
|
|
@NotNull
|
|
private final CoroutineDispatcher dispatcher;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public SuspendingPagingSourceFactory(@NotNull CoroutineDispatcher coroutineDispatcher, @NotNull Function0<? extends PagingSource<Key, Value>> function0) {
|
|
coroutineDispatcher.getClass();
|
|
function0.getClass();
|
|
this.dispatcher = coroutineDispatcher;
|
|
this.delegate = function0;
|
|
}
|
|
|
|
@Nullable
|
|
public final Object create(@NotNull Continuation<? super PagingSource<Key, Value>> continuation) {
|
|
return BuildersKt.withContext(this.dispatcher, new SuspendingPagingSourceFactory$create$2(this, null), continuation);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
@NotNull
|
|
public PagingSource<Key, Value> invoke() {
|
|
return this.delegate.invoke();
|
|
}
|
|
}
|