Skip to content

Commit

Permalink
Switch usage of Observable.timer for Observable.interval
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jul 7, 2016
1 parent f918595 commit 4b7c4a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private Observable<Void> handleHystrixRequest(final HttpServerResponse<O> respon

final Subject<Void, Void> subject = PublishSubject.create();
final MultipleAssignmentSubscription subscription = new MultipleAssignmentSubscription();
Subscription actionSubscription = Observable.timer(0, interval, TimeUnit.MILLISECONDS, Schedulers.computation())
Subscription actionSubscription = Observable.interval(interval, TimeUnit.MILLISECONDS)
.subscribe(new Action1<Long>() {
@Override
public void call(Long tick) {
Expand Down

0 comments on commit 4b7c4a1

Please sign in to comment.