2021-07-24 02:37:17 +00:00
|
|
|
package androidx.lifecycle;
|
|
|
|
|
|
|
|
import c.q.a.k.a;
|
2021-10-18 07:12:10 +00:00
|
|
|
import c0.z.d.m;
|
2021-07-24 02:37:17 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|