a.smali
.class public final Lrx/internal/util/a;
.super Ljava/lang/Object;
.source "BlockingUtils.java"
# direct methods
.method public static a(Ljava/util/concurrent/CountDownLatch;Lrx/p;)V
.registers 6
.prologue
.line 42
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->getCount()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-nez v0, :cond_b
.line 57
:goto_a
return-void
.line 49
:cond_b
:try_start_b
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->await()V
:try_end_e
.catch Ljava/lang/InterruptedException; {:try_start_b .. :try_end_e} :catch_f
goto :goto_a
.line 50
:catch_f
move-exception v0
.line 51
invoke-interface {p1}, Lrx/p;->unsubscribe()V
.line 54
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
.line 56
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "Interrupted while waiting for subscription to complete."
invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method