ADD week 5
This commit is contained in:
		
							
								
								
									
										31
									
								
								02-Easy5/E5/sources/kotlinx/coroutines/DisposeOnCancel.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								02-Easy5/E5/sources/kotlinx/coroutines/DisposeOnCancel.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| package kotlinx.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.Unit; | ||||
|  | ||||
| /* compiled from: CancellableContinuation.kt */ | ||||
| @Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0005\u001a\u00020\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\bH\u0096\u0002J\b\u0010\t\u001a\u00020\nH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lkotlinx/coroutines/DisposeOnCancel;", "Lkotlinx/coroutines/CancelHandler;", "handle", "Lkotlinx/coroutines/DisposableHandle;", "(Lkotlinx/coroutines/DisposableHandle;)V", "invoke", "", "cause", "", "toString", "", "kotlinx-coroutines-core"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| final class DisposeOnCancel extends CancelHandler { | ||||
|     private final DisposableHandle handle; | ||||
|  | ||||
|     public DisposeOnCancel(DisposableHandle disposableHandle) { | ||||
|         this.handle = disposableHandle; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.jvm.functions.Function1 | ||||
|     public /* bridge */ /* synthetic */ Unit invoke(Throwable th) { | ||||
|         invoke2(th); | ||||
|         return Unit.INSTANCE; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlinx.coroutines.CancelHandlerBase | ||||
|     /* renamed from: invoke, reason: avoid collision after fix types in other method */ | ||||
|     public void invoke2(Throwable cause) { | ||||
|         this.handle.dispose(); | ||||
|     } | ||||
|  | ||||
|     public String toString() { | ||||
|         return "DisposeOnCancel[" + this.handle + ']'; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user