.class public final Ll0/l/c/i; .super Ljava/util/concurrent/atomic/AtomicReference; .source "ScheduledAction.java" # interfaces .implements Ljava/lang/Runnable; .implements Lrx/Subscription; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Ll0/l/c/i$b;, Ll0/l/c/i$c;, Ll0/l/c/i$a; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/concurrent/atomic/AtomicReference<", "Ljava/lang/Thread;", ">;", "Ljava/lang/Runnable;", "Lrx/Subscription;" } .end annotation # static fields .field public static final serialVersionUID:J = -0x36fd4556f787c9b1L # instance fields .field public final action:Lrx/functions/Action0; .field public final cancel:Lrx/internal/util/SubscriptionList; # direct methods .method public constructor (Lrx/functions/Action0;)V .locals 0 invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;->()V iput-object p1, p0, Ll0/l/c/i;->action:Lrx/functions/Action0; new-instance p1, Lrx/internal/util/SubscriptionList; invoke-direct {p1}, Lrx/internal/util/SubscriptionList;->()V iput-object p1, p0, Ll0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList; return-void .end method .method public constructor (Lrx/functions/Action0;Lrx/internal/util/SubscriptionList;)V .locals 1 invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;->()V iput-object p1, p0, Ll0/l/c/i;->action:Lrx/functions/Action0; new-instance p1, Lrx/internal/util/SubscriptionList; new-instance v0, Ll0/l/c/i$b; invoke-direct {v0, p0, p2}, Ll0/l/c/i$b;->(Ll0/l/c/i;Lrx/internal/util/SubscriptionList;)V invoke-direct {p1, v0}, Lrx/internal/util/SubscriptionList;->(Lrx/Subscription;)V iput-object p1, p0, Ll0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList; return-void .end method .method public constructor (Lrx/functions/Action0;Lrx/subscriptions/CompositeSubscription;)V .locals 1 invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;->()V iput-object p1, p0, Ll0/l/c/i;->action:Lrx/functions/Action0; new-instance p1, Lrx/internal/util/SubscriptionList; new-instance v0, Ll0/l/c/i$c; invoke-direct {v0, p0, p2}, Ll0/l/c/i$c;->(Ll0/l/c/i;Lrx/subscriptions/CompositeSubscription;)V invoke-direct {p1, v0}, Lrx/internal/util/SubscriptionList;->(Lrx/Subscription;)V iput-object p1, p0, Ll0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList; return-void .end method # virtual methods .method public a(Ljava/util/concurrent/Future;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/concurrent/Future<", "*>;)V" } .end annotation iget-object v0, p0, Ll0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList; new-instance v1, Ll0/l/c/i$a; invoke-direct {v1, p0, p1}, Ll0/l/c/i$a;->(Ll0/l/c/i;Ljava/util/concurrent/Future;)V invoke-virtual {v0, v1}, Lrx/internal/util/SubscriptionList;->a(Lrx/Subscription;)V return-void .end method .method public isUnsubscribed()Z .locals 1 iget-object v0, p0, Ll0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList; iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z return v0 .end method .method public run()V .locals 3 :try_start_0 invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V iget-object v0, p0, Ll0/l/c/i;->action:Lrx/functions/Action0; invoke-interface {v0}, Lrx/functions/Action0;->call()V :try_end_0 .catch Lrx/exceptions/OnErrorNotImplementedException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v0 :try_start_1 new-instance v1, Ljava/lang/IllegalStateException; const-string v2, "Fatal Exception thrown on Scheduler.Worker thread." invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;Ljava/lang/Throwable;)V invoke-static {v1}, Ll0/o/l;->b(Ljava/lang/Throwable;)V invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler; move-result-object v2 invoke-interface {v2, v0, v1}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V goto :goto_0 :catch_0 move-exception v0 new-instance v1, Ljava/lang/IllegalStateException; const-string v2, "Exception thrown on Scheduler.Worker thread. Add `onError` handling." invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;Ljava/lang/Throwable;)V invoke-static {v1}, Ll0/o/l;->b(Ljava/lang/Throwable;)V invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler; move-result-object v2 invoke-interface {v2, v0, v1}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 :goto_0 invoke-virtual {p0}, Ll0/l/c/i;->unsubscribe()V return-void :catchall_1 move-exception v0 invoke-virtual {p0}, Ll0/l/c/i;->unsubscribe()V throw v0 .end method .method public unsubscribe()V .locals 1 iget-object v0, p0, Ll0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList; iget-boolean v0, v0, Lrx/internal/util/SubscriptionList;->e:Z if-nez v0, :cond_0 iget-object v0, p0, Ll0/l/c/i;->cancel:Lrx/internal/util/SubscriptionList; invoke-virtual {v0}, Lrx/internal/util/SubscriptionList;->unsubscribe()V :cond_0 return-void .end method