.class public final Lio/reactivex/internal/operators/flowable/f0; .super Lkh/j; .source "FlowableFromFuture.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Lkh/j<", "TT;>;" } .end annotation # instance fields .field public final b:Ljava/util/concurrent/Future; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/concurrent/Future<", "+TT;>;" } .end annotation .end field .field public final c:J .field public final d:Ljava/util/concurrent/TimeUnit; # direct methods .method public constructor (Ljava/util/concurrent/Future;JLjava/util/concurrent/TimeUnit;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/concurrent/Future<", "+TT;>;J", "Ljava/util/concurrent/TimeUnit;", ")V" } .end annotation .line 1 invoke-direct {p0}, Lkh/j;->()V .line 2 iput-object p1, p0, Lio/reactivex/internal/operators/flowable/f0;->b:Ljava/util/concurrent/Future; .line 3 iput-wide p2, p0, Lio/reactivex/internal/operators/flowable/f0;->c:J .line 4 iput-object p4, p0, Lio/reactivex/internal/operators/flowable/f0;->d:Ljava/util/concurrent/TimeUnit; return-void .end method # virtual methods .method public g6(Lok/d;)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TT;>;)V" } .end annotation .line 1 new-instance v0, Lio/reactivex/internal/subscriptions/DeferredScalarSubscription; invoke-direct {v0, p1}, Lio/reactivex/internal/subscriptions/DeferredScalarSubscription;->(Lok/d;)V .line 2 invoke-interface {p1, v0}, Lok/d;->onSubscribe(Lok/e;)V .line 3 :try_start_0 iget-object v1, p0, Lio/reactivex/internal/operators/flowable/f0;->d:Ljava/util/concurrent/TimeUnit; if-eqz v1, :cond_0 iget-object v2, p0, Lio/reactivex/internal/operators/flowable/f0;->b:Ljava/util/concurrent/Future; iget-wide v3, p0, Lio/reactivex/internal/operators/flowable/f0;->c:J invoke-interface {v2, v3, v4, v1}, Ljava/util/concurrent/Future;->get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; move-result-object v1 goto :goto_0 :cond_0 iget-object v1, p0, Lio/reactivex/internal/operators/flowable/f0;->b:Ljava/util/concurrent/Future; invoke-interface {v1}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object; move-result-object v1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_0 if-nez v1, :cond_1 .line 4 new-instance v0, Ljava/lang/NullPointerException; const-string v1, "The future returned null" invoke-direct {v0, v1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V invoke-interface {p1, v0}, Lok/d;->onError(Ljava/lang/Throwable;)V goto :goto_1 .line 5 :cond_1 invoke-virtual {v0, v1}, Lio/reactivex/internal/subscriptions/DeferredScalarSubscription;->complete(Ljava/lang/Object;)V :goto_1 return-void :catchall_0 move-exception v1 .line 6 invoke-static {v1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V .line 7 invoke-virtual {v0}, Lio/reactivex/internal/subscriptions/DeferredScalarSubscription;->isCancelled()Z move-result v0 if-nez v0, :cond_2 .line 8 invoke-interface {p1, v1}, Lok/d;->onError(Ljava/lang/Throwable;)V :cond_2 return-void .end method