@@ -67,11 +67,12 @@ method hindered type inference and made Scala code look unnecessarily different
67
67
All factory methods now have their own name corresponding to the Java and .NET operators
68
68
(plus overloads that take a ` Scheduler ` ).
69
69
70
- * ` def from[T](future: Future[T]): Observable[T] `
71
- * ` def from[T](iterable: Iterable[T]): Observable[T] `
72
- * ` def error[T](exception: Throwable): Observable[T] `
73
- * ` def empty[T]: Observable[T] `
74
- * `def items[ T] (items: T* ): Observable[ T]
70
+ * ` def from[T](future: Future[T]): Observable[T] ` ,
71
+ * ` def from[T](iterable: Iterable[T]): Observable[T] ` ,
72
+ * ` def error[T](exception: Throwable): Observable[T] ` ,
73
+ * ` def empty[T]: Observable[T] ` ,
74
+ * `def items[ T] (items: T* ): Observable[ T] ,
75
+ * Extension method on ` toObservable: Observable[T] ` on ` List[T] ` .
75
76
76
77
In the * pre-release* of this version, we expose both ` apply ` and ` create ` for the mother of all creation functions.
77
78
We would like to solicit feedback which of these two names is preferred
@@ -96,10 +97,10 @@ object Subject {
96
97
For each kind of subject, there is a class with a private constructor and a companion object that you should use
97
98
to create a new kind of subject. The subjects that are available are:
98
99
99
- * ` AsyncSubject[T]() `
100
- * ` BehaviorSubject[T](value) `
101
- * ` Subject[T]() `
102
- * ` ReplaySubject[T]() `
100
+ * ` AsyncSubject[T]() ` ,
101
+ * ` BehaviorSubject[T](value) ` ,
102
+ * ` Subject[T]() ` ,
103
+ * ` ReplaySubject[T]() ` .
103
104
104
105
The latter is still missing various overloads http://msdn.microsoft.com/en-us/library/hh211810 (v=vs.103).aspx which
105
106
you can expect to appear once they are added to the underlying RxJava implementation.
@@ -128,14 +129,14 @@ which already deviated from the pattern.
128
129
In this release, we changed this to make scheduler more like ` Subject ` and provide a family of schedulers
129
130
that you create using their factory function:
130
131
131
- * ` CurrentThreadScheduler() `
132
- * ` ExecutorScheduler(executor) `
133
- * ` ImmediateScheduler() `
134
- * ` NewThreadScheduler() `
135
- * ` ScheduledExecutorServiceScheduler(scheduledExecutorService) `
136
- * ` TestScheduler() `
137
- * ` ThreadPoolForComputationScheduler() `
138
- * ` ThreadPoolForIOScheduler() `
132
+ * ` CurrentThreadScheduler() ` ,
133
+ * ` ExecutorScheduler(executor) ` ,
134
+ * ` ImmediateScheduler() ` ,
135
+ * ` NewThreadScheduler() ` ,
136
+ * ` ScheduledExecutorServiceScheduler(scheduledExecutorService) ` ,
137
+ * ` TestScheduler() ` ,
138
+ * ` ThreadPoolForComputationScheduler() ` ,
139
+ * ` ThreadPoolForIOScheduler() ` .
139
140
140
141
In the future we expect that this list will grow further with new schedulers as they are imported from .NET
141
142
(http://msdn.microsoft.com/en-us/library/system.reactive.concurrency(v=vs.103).aspx) .
@@ -162,10 +163,10 @@ object Subscription {...}
162
163
163
164
To create a ` Subscription ` use one of the following factory methods:
164
165
165
- * ` Subscription{...} ` , ` Subscription() `
166
- * ` CompositeSubscription(subscriptions) `
167
- * ` MultipleAssignmentSubscription() `
168
- * ` SerialSubscription() `
166
+ * ` Subscription{...} ` , ` Subscription() ` ,
167
+ * ` CompositeSubscription(subscriptions) ` ,
168
+ * ` MultipleAssignmentSubscription() ` ,
169
+ * ` SerialSubscription() ` .
169
170
170
171
In case you do feel tempted to call ` new Subscription{...} ` directly make sure you wire up ` isUnsubscribed `
171
172
and ` unsubscribe() ` properly, but for all practical purposes you should just use one of the factory methods.
0 commit comments