ADD week 5
This commit is contained in:
		
							
								
								
									
										48
									
								
								02-Easy5/E5/sources/kotlinx/coroutines/Deferred.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								02-Easy5/E5/sources/kotlinx/coroutines/Deferred.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| package kotlinx.coroutines; | ||||
|  | ||||
| import kotlin.Deprecated; | ||||
| import kotlin.DeprecationLevel; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlinx.coroutines.Job; | ||||
| import kotlinx.coroutines.selects.SelectClause1; | ||||
|  | ||||
| /* compiled from: Deferred.kt */ | ||||
| @Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0003\n\u0000\bf\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\u00020\u0002J\u0011\u0010\u0007\u001a\u00028\u0000H¦@ø\u0001\u0000¢\u0006\u0002\u0010\bJ\r\u0010\t\u001a\u00028\u0000H'¢\u0006\u0002\u0010\nJ\n\u0010\u000b\u001a\u0004\u0018\u00010\fH'R\u0018\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\r"}, d2 = {"Lkotlinx/coroutines/Deferred;", "T", "Lkotlinx/coroutines/Job;", "onAwait", "Lkotlinx/coroutines/selects/SelectClause1;", "getOnAwait", "()Lkotlinx/coroutines/selects/SelectClause1;", "await", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getCompleted", "()Ljava/lang/Object;", "getCompletionExceptionOrNull", "", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public interface Deferred<T> extends Job { | ||||
|     Object await(Continuation<? super T> continuation); | ||||
|  | ||||
|     T getCompleted(); | ||||
|  | ||||
|     Throwable getCompletionExceptionOrNull(); | ||||
|  | ||||
|     SelectClause1<T> getOnAwait(); | ||||
|  | ||||
|     /* compiled from: Deferred.kt */ | ||||
|     @Metadata(k = 3, mv = {1, 8, 0}, xi = 48) | ||||
|     public static final class DefaultImpls { | ||||
|         public static <T, R> R fold(Deferred<? extends T> deferred, R r, Function2<? super R, ? super CoroutineContext.Element, ? extends R> function2) { | ||||
|             return (R) Job.DefaultImpls.fold(deferred, r, function2); | ||||
|         } | ||||
|  | ||||
|         public static <T, E extends CoroutineContext.Element> E get(Deferred<? extends T> deferred, CoroutineContext.Key<E> key) { | ||||
|             return (E) Job.DefaultImpls.get(deferred, key); | ||||
|         } | ||||
|  | ||||
|         public static <T> CoroutineContext minusKey(Deferred<? extends T> deferred, CoroutineContext.Key<?> key) { | ||||
|             return Job.DefaultImpls.minusKey(deferred, key); | ||||
|         } | ||||
|  | ||||
|         public static <T> CoroutineContext plus(Deferred<? extends T> deferred, CoroutineContext coroutineContext) { | ||||
|             return Job.DefaultImpls.plus(deferred, 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 <T> Job plus(Deferred<? extends T> deferred, Job job) { | ||||
|             return Job.DefaultImpls.plus((Job) deferred, job); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user