ADD week 5

This commit is contained in:
2025-03-31 16:33:42 +02:00
parent 86f265f22d
commit bf645048e6
4927 changed files with 544053 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
package kotlinx.coroutines;
import kotlin.Deprecated;
import kotlin.DeprecationLevel;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.Job;
/* compiled from: Job.kt */
@Deprecated(level = DeprecationLevel.ERROR, message = "This is internal API and may be removed in the future releases")
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bg\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H'¨\u0006\u0006"}, d2 = {"Lkotlinx/coroutines/ChildJob;", "Lkotlinx/coroutines/Job;", "parentCancelled", "", "parentJob", "Lkotlinx/coroutines/ParentJob;", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public interface ChildJob extends Job {
void parentCancelled(ParentJob parentJob);
/* compiled from: Job.kt */
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public static final class DefaultImpls {
public static <R> R fold(ChildJob childJob, R r, Function2<? super R, ? super CoroutineContext.Element, ? extends R> function2) {
return (R) Job.DefaultImpls.fold(childJob, r, function2);
}
public static <E extends CoroutineContext.Element> E get(ChildJob childJob, CoroutineContext.Key<E> key) {
return (E) Job.DefaultImpls.get(childJob, key);
}
public static CoroutineContext minusKey(ChildJob childJob, CoroutineContext.Key<?> key) {
return Job.DefaultImpls.minusKey(childJob, key);
}
public static CoroutineContext plus(ChildJob childJob, CoroutineContext coroutineContext) {
return Job.DefaultImpls.plus(childJob, coroutineContext);
}
@Deprecated(level = DeprecationLevel.ERROR, message = "Operator '+' on two Job objects is meaningless. Job is a coroutine context element and `+` is a set-sum operator for coroutine contexts. The job to the right of `+` just replaces the job the left of `+`.")
public static Job plus(ChildJob childJob, Job job) {
return Job.DefaultImpls.plus((Job) childJob, job);
}
}
}