@@ -21,7 +21,6 @@ import rx.Observable.OnSubscribeFunc
21
21
import rx .lang .scala .observables .ConnectableObservable
22
22
import scala .concurrent .duration
23
23
import java .util
24
- import java .util .concurrent .TimeUnit
25
24
import collection .JavaConversions ._
26
25
27
26
@@ -80,7 +79,7 @@ trait Observable[+T]
80
79
{
81
80
import scala .collection .JavaConverters ._
82
81
import scala .collection .Seq
83
- import scala .concurrent .duration .{Duration , TimeUnit }
82
+ import scala .concurrent .duration .{Duration , TimeUnit , MILLISECONDS }
84
83
import rx .functions ._
85
84
import rx .lang .scala .observables .BlockingObservable
86
85
import ImplicitFunctionConversions ._
@@ -2970,7 +2969,7 @@ trait Observable[+T]
2970
2969
*/
2971
2970
def timeInterval : Observable [(Duration , T )] = {
2972
2971
toScalaObservable(asJavaObservable.timeInterval())
2973
- .map(inv => (Duration (inv.getIntervalInMilliseconds, TimeUnit . MILLISECONDS ), inv.getValue))
2972
+ .map(inv => (Duration (inv.getIntervalInMilliseconds, MILLISECONDS ), inv.getValue))
2974
2973
}
2975
2974
2976
2975
/**
@@ -2984,7 +2983,7 @@ trait Observable[+T]
2984
2983
*/
2985
2984
def timeInterval (scheduler : Scheduler ): Observable [(Duration , T )] = {
2986
2985
toScalaObservable(asJavaObservable.timeInterval(scheduler.asJavaScheduler))
2987
- .map(inv => (Duration (inv.getIntervalInMilliseconds, TimeUnit . MILLISECONDS ), inv.getValue))
2986
+ .map(inv => (Duration (inv.getIntervalInMilliseconds, MILLISECONDS ), inv.getValue))
2988
2987
}
2989
2988
2990
2989
/**
0 commit comments