@@ -8,13 +8,8 @@ package rx.lang
8
8
* e.g. rx.Notification[_ <: T], so we create aliases fixing the variance
9
9
* - For consistency, we create aliases for all types
10
10
* - Type aliases cannot be at top level, they have to be inside an object or class
11
- * - It's possible to make a "package object" instead of "object", but if there's a
12
- * package with the same name as the package object, the gradle builder fails
13
- * (the eclipse builder works). Using -Yresolve-term-conflict:package
14
- * or -Yresolve-term-conflict:object as scalac options didn't help.
15
- * See also http://stackoverflow.com/questions/8984730/package-contains-object-and-package-with-same-name
16
11
*/
17
- object scala {
12
+ package object scala {
18
13
19
14
type Notification [+ T ] = rx.Notification [_ <: T ]
20
15
object Notification {
@@ -23,36 +18,9 @@ object scala {
23
18
def apply [T ](t : Throwable ): Notification [T ] = new rx.Notification (t)
24
19
}
25
20
26
- type Observable [+ T ] = rx.lang.scalaimpl.Observable [T ]
27
- val Observable = rx.lang.scalaimpl.Observable
28
21
type Observer [- T ] = rx.Observer [_ >: T ]
29
22
type Scheduler = rx.Scheduler
30
23
type Subscription = rx.Subscription
31
-
32
- object util {
33
- type Closing = rx.util.Closing
34
-
35
- // TODO rx.util.Closings
36
-
37
- type CompositeException = rx.util.CompositeException
38
-
39
- // TODO rx.util.Exceptions
40
-
41
- // rx.util.OnErrorNotImplementedException TODO what's this?
42
-
43
- type Opening = rx.util.Opening
44
-
45
- // rx.util.Openings // TODO
46
-
47
- // rx.util.Range // TODO do we need this? Or the Scala Range?
48
-
49
- type Timestamped [+ T ] = rx.util.Timestamped [_ <: T ]
50
- object Timestamped {
51
- def apply [T ](timestampMillis : Long , value : T ): Timestamped [T ] = {
52
- new rx.util.Timestamped (timestampMillis, value)
53
- }
54
- }
55
- }
56
24
57
25
}
58
26
@@ -62,13 +30,6 @@ TODO make aliases for these types because:
62
30
* those which are covariant or contravariant do need an alias to get variance correct
63
31
* the others for consistency
64
32
65
- rx.concurrency.CurrentThreadScheduler
66
- rx.concurrency.ExecutorScheduler
67
- rx.concurrency.ImmediateScheduler
68
- rx.concurrency.NewThreadScheduler
69
- rx.concurrency.Schedulers
70
- rx.concurrency.TestScheduler
71
-
72
33
rx.observables.BlockingObservable
73
34
rx.observables.ConnectableObservable
74
35
rx.observables.GroupedObservable
0 commit comments