aa.smali

.class public final Lrx/internal/operators/aa;
.super Ljava/lang/Object;
.source "SingleFromCallable.java"

# interfaces
.implements Lrx/m;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lrx/m",
        "<TT;>;"
    }
.end annotation


# instance fields
.field private callable:Ljava/util/concurrent/Callable;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/Callable",
            "<+TT;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Ljava/util/concurrent/Callable;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/concurrent/Callable",
            "<+TT;>;)V"
        }
    .end annotation

    .prologue
    .line 33
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 34
    iput-object p1, p0, Lrx/internal/operators/aa;->callable:Ljava/util/concurrent/Callable;

    .line 35
    return-void
.end method


# virtual methods
.method public final synthetic call(Ljava/lang/Object;)V
    .registers 3

    .prologue
    .line 29
    check-cast p1, Lrx/n;

    .line 1041
    :try_start_2
    iget-object v0, p0, Lrx/internal/operators/aa;->callable:Ljava/util/concurrent/Callable;

    invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
    :try_end_7
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_7} :catch_c

    move-result-object v0

    .line 1048
    invoke-virtual {p1, v0}, Lrx/n;->onSuccess(Ljava/lang/Object;)V

    .line 1045
    :goto_b
    return-void

    .line 1042
    :catch_c
    move-exception v0

    .line 1043
    invoke-static {v0}, Lrx/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V

    .line 1044
    invoke-virtual {p1, v0}, Lrx/n;->onError(Ljava/lang/Throwable;)V

    goto :goto_b
.end method