.class final Lbolts/Task$6; .super Ljava/lang/Object; .source "Task.java" # interfaces .implements Lbolts/Continuation; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lbolts/Task;->whenAny(Ljava/util/Collection;)Lbolts/Task; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x8 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Lbolts/Continuation", "<", "Ljava/lang/Object;", "Ljava/lang/Void;", ">;" } .end annotation # instance fields .field final synthetic val$firstCompleted:Lbolts/TaskCompletionSource; .field final synthetic val$isAnyTaskComplete:Ljava/util/concurrent/atomic/AtomicBoolean; # direct methods .method constructor (Ljava/util/concurrent/atomic/AtomicBoolean;Lbolts/TaskCompletionSource;)V .locals 0 .prologue .line 447 iput-object p1, p0, Lbolts/Task$6;->val$isAnyTaskComplete:Ljava/util/concurrent/atomic/AtomicBoolean; iput-object p2, p0, Lbolts/Task$6;->val$firstCompleted:Lbolts/TaskCompletionSource; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public bridge synthetic then(Lbolts/Task;)Ljava/lang/Object; .locals 1 .prologue .line 447 invoke-virtual {p0, p1}, Lbolts/Task$6;->then(Lbolts/Task;)Ljava/lang/Void; move-result-object v0 return-object v0 .end method .method public then(Lbolts/Task;)Ljava/lang/Void; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lbolts/Task", "<", "Ljava/lang/Object;", ">;)", "Ljava/lang/Void;" } .end annotation .prologue .line 450 iget-object v0, p0, Lbolts/Task$6;->val$isAnyTaskComplete:Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x0 const/4 v2, 0x1 invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z move-result v0 if-eqz v0, :cond_0 .line 451 iget-object v0, p0, Lbolts/Task$6;->val$firstCompleted:Lbolts/TaskCompletionSource; invoke-virtual {v0, p1}, Lbolts/TaskCompletionSource;->setResult(Ljava/lang/Object;)V .line 455 :goto_0 const/4 v0, 0x0 return-object v0 .line 453 :cond_0 invoke-virtual {p1}, Lbolts/Task;->getError()Ljava/lang/Exception; goto :goto_0 .end method