discord-jadx/app/src/main/java/androidx/lifecycle/CloseableCoroutineScope.java

27 lines
829 B
Java

package androidx.lifecycle;
import c.q.a.k.a;
import d0.z.d.m;
import java.io.Closeable;
import kotlin.coroutines.CoroutineContext;
import kotlinx.coroutines.CoroutineScope;
/* compiled from: ViewModel.kt */
public final class CloseableCoroutineScope implements Closeable, CoroutineScope {
private final CoroutineContext coroutineContext;
public CloseableCoroutineScope(CoroutineContext coroutineContext) {
m.checkNotNullParameter(coroutineContext, "context");
this.coroutineContext = coroutineContext;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public void close() {
a.j(getCoroutineContext(), null, 1, null);
}
@Override // kotlinx.coroutines.CoroutineScope
public CoroutineContext getCoroutineContext() {
return this.coroutineContext;
}
}