Skip to content

Commit da560ac

Browse files
Release notes edits.
1 parent fe451f5 commit da560ac

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

language-adaptors/rxjava-scala/ReleaseNotes.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ method hindered type inference and made Scala code look unnecessarily different
6767
All factory methods now have their own name corresponding to the Java and .NET operators
6868
(plus overloads that take a `Scheduler`).
6969

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]`.
7576

7677
In the *pre-release* of this version, we expose both `apply` and `create` for the mother of all creation functions.
7778
We would like to solicit feedback which of these two names is preferred
@@ -96,10 +97,10 @@ object Subject {
9697
For each kind of subject, there is a class with a private constructor and a companion object that you should use
9798
to create a new kind of subject. The subjects that are available are:
9899

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]()`.
103104

104105
The latter is still missing various overloads http://msdn.microsoft.com/en-us/library/hh211810(v=vs.103).aspx which
105106
you can expect to appear once they are added to the underlying RxJava implementation.
@@ -128,14 +129,14 @@ which already deviated from the pattern.
128129
In this release, we changed this to make scheduler more like `Subject` and provide a family of schedulers
129130
that you create using their factory function:
130131

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()`.
139140

140141
In the future we expect that this list will grow further with new schedulers as they are imported from .NET
141142
(http://msdn.microsoft.com/en-us/library/system.reactive.concurrency(v=vs.103).aspx).
@@ -162,10 +163,10 @@ object Subscription {...}
162163

163164
To create a `Subscription` use one of the following factory methods:
164165

165-
* `Subscription{...}`, `Subscription()`
166-
* `CompositeSubscription(subscriptions)`
167-
* `MultipleAssignmentSubscription()`
168-
* `SerialSubscription()`
166+
* `Subscription{...}`, `Subscription()`,
167+
* `CompositeSubscription(subscriptions)`,
168+
* `MultipleAssignmentSubscription()`,
169+
* `SerialSubscription()`.
169170

170171
In case you do feel tempted to call `new Subscription{...}` directly make sure you wire up `isUnsubscribed`
171172
and `unsubscribe()` properly, but for all practical purposes you should just use one of the factory methods.

0 commit comments

Comments
 (0)