SingleFromCallable.smali
.class public final Lrx/internal/operators/SingleFromCallable;
.super Ljava/lang/Object;
.source "SingleFromCallable.java"
# interfaces
.implements Lrx/Single$OnSubscribe;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/Single$OnSubscribe<",
"TT;>;"
}
.end annotation
# instance fields
.field final 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
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/operators/SingleFromCallable;->callable:Ljava/util/concurrent/Callable;
return-void
.end method
# virtual methods
.method public bridge synthetic call(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Lrx/SingleSubscriber;
invoke-virtual {p0, p1}, Lrx/internal/operators/SingleFromCallable;->call(Lrx/SingleSubscriber;)V
return-void
.end method
.method public call(Lrx/SingleSubscriber;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/SingleSubscriber<",
"-TT;>;)V"
}
.end annotation
.line 2
:try_start_0
iget-object v0, p0, Lrx/internal/operators/SingleFromCallable;->callable:Ljava/util/concurrent/Callable;
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v0
:try_end_6
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_6} :catch_a
.line 3
invoke-virtual {p1, v0}, Lrx/SingleSubscriber;->onSuccess(Ljava/lang/Object;)V
return-void
:catch_a
move-exception v0
.line 4
invoke-static {v0}, Lrx/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 5
invoke-virtual {p1, v0}, Lrx/SingleSubscriber;->onError(Ljava/lang/Throwable;)V
return-void
.end method