107 lines
3 KiB
Smali
107 lines
3 KiB
Smali
.class public final Lrx/internal/operators/OperatorSubscribeOn;
|
|
.super Ljava/lang/Object;
|
|
.source "OperatorSubscribeOn.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/Observable$OnSubscribe;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/Observable$OnSubscribe",
|
|
"<TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final scheduler:Lrx/Scheduler;
|
|
|
|
.field final source:Lrx/Observable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Observable",
|
|
"<TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Observable;Lrx/Scheduler;)V
|
|
.locals 0
|
|
.param p2, "scheduler" # Lrx/Scheduler;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Observable",
|
|
"<TT;>;",
|
|
"Lrx/Scheduler;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorSubscribeOn;, "Lrx/internal/operators/OperatorSubscribeOn<TT;>;"
|
|
.local p1, "source":Lrx/Observable;, "Lrx/Observable<TT;>;"
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p2, p0, Lrx/internal/operators/OperatorSubscribeOn;->scheduler:Lrx/Scheduler;
|
|
|
|
iput-object p1, p0, Lrx/internal/operators/OperatorSubscribeOn;->source:Lrx/Observable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)V
|
|
.locals 0
|
|
.param p1, "x0" # Ljava/lang/Object;
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorSubscribeOn;, "Lrx/internal/operators/OperatorSubscribeOn<TT;>;"
|
|
check-cast p1, Lrx/Subscriber;
|
|
|
|
.end local p1 # "x0":Ljava/lang/Object;
|
|
invoke-virtual {p0, p1}, Lrx/internal/operators/OperatorSubscribeOn;->call(Lrx/Subscriber;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public call(Lrx/Subscriber;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber",
|
|
"<-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorSubscribeOn;, "Lrx/internal/operators/OperatorSubscribeOn<TT;>;"
|
|
.local p1, "subscriber":Lrx/Subscriber;, "Lrx/Subscriber<-TT;>;"
|
|
iget-object v1, p0, Lrx/internal/operators/OperatorSubscribeOn;->scheduler:Lrx/Scheduler;
|
|
|
|
invoke-virtual {v1}, Lrx/Scheduler;->createWorker()Lrx/Scheduler$Worker;
|
|
|
|
move-result-object v0
|
|
|
|
.local v0, "inner":Lrx/Scheduler$Worker;
|
|
invoke-virtual {p1, v0}, Lrx/Subscriber;->add(Lrx/Subscription;)V
|
|
|
|
new-instance v1, Lrx/internal/operators/OperatorSubscribeOn$1;
|
|
|
|
invoke-direct {v1, p0, p1, v0}, Lrx/internal/operators/OperatorSubscribeOn$1;-><init>(Lrx/internal/operators/OperatorSubscribeOn;Lrx/Subscriber;Lrx/Scheduler$Worker;)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Scheduler$Worker;->schedule(Lrx/functions/Action0;)Lrx/Subscription;
|
|
|
|
return-void
|
|
.end method
|