43 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| 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: CompletableJob.kt */
 | |
| @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0003\n\u0000\bf\u0018\u00002\u00020\u0001J\b\u0010\u0002\u001a\u00020\u0003H&J\u0010\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0005\u001a\u00020\u0006H&¨\u0006\u0007"}, d2 = {"Lkotlinx/coroutines/CompletableJob;", "Lkotlinx/coroutines/Job;", "complete", "", "completeExceptionally", "exception", "", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48)
 | |
| /* loaded from: classes.dex */
 | |
| public interface CompletableJob extends Job {
 | |
|     boolean complete();
 | |
| 
 | |
|     boolean completeExceptionally(Throwable exception);
 | |
| 
 | |
|     /* compiled from: CompletableJob.kt */
 | |
|     @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
 | |
|     public static final class DefaultImpls {
 | |
|         public static <R> R fold(CompletableJob completableJob, R r, Function2<? super R, ? super CoroutineContext.Element, ? extends R> function2) {
 | |
|             return (R) Job.DefaultImpls.fold(completableJob, r, function2);
 | |
|         }
 | |
| 
 | |
|         public static <E extends CoroutineContext.Element> E get(CompletableJob completableJob, CoroutineContext.Key<E> key) {
 | |
|             return (E) Job.DefaultImpls.get(completableJob, key);
 | |
|         }
 | |
| 
 | |
|         public static CoroutineContext minusKey(CompletableJob completableJob, CoroutineContext.Key<?> key) {
 | |
|             return Job.DefaultImpls.minusKey(completableJob, key);
 | |
|         }
 | |
| 
 | |
|         public static CoroutineContext plus(CompletableJob completableJob, CoroutineContext coroutineContext) {
 | |
|             return Job.DefaultImpls.plus(completableJob, 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(CompletableJob completableJob, Job job) {
 | |
|             return Job.DefaultImpls.plus((Job) completableJob, job);
 | |
|         }
 | |
|     }
 | |
| }
 |