Skip to content

Commit

Permalink
inner() -> createInner()
Browse files Browse the repository at this point in the history
  • Loading branch information
benjchristensen committed Apr 18, 2014
1 parent c09a1bd commit 5fb201f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public HandlerThreadScheduler(Handler handler) {
}

@Override
public Inner inner() {
public Inner createInner() {
return new InnerHandlerThreadScheduler(handler);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void call() {
if (Looper.getMainLooper() == Looper.myLooper()) {
unsubscribe.call();
} else {
final Inner inner = AndroidSchedulers.mainThread().inner();
final Inner inner = AndroidSchedulers.mainThread().createInner();
inner.schedule(new Action0() {
@Override
public void call() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void shouldScheduleImmediateActionOnHandlerThread() {
final Action0 action = mock(Action0.class);

Scheduler scheduler = new HandlerThreadScheduler(handler);
Inner inner = scheduler.inner();
Inner inner = scheduler.createInner();
inner.schedule(action);

// verify that we post to the given Handler
Expand All @@ -64,7 +64,7 @@ public void shouldScheduleDelayedActionOnHandlerThread() {
final Action0 action = mock(Action0.class);

Scheduler scheduler = new HandlerThreadScheduler(handler);
Inner inner = scheduler.inner();
Inner inner = scheduler.createInner();
inner.schedule(action, 1L, TimeUnit.SECONDS);

// verify that we post to the given Handler
Expand Down

0 comments on commit 5fb201f

Please sign in to comment.