Skip to content

Commit

Permalink
Reactive cleanup (#1572)
Browse files Browse the repository at this point in the history
* Remove obsolete processors
* Tests clean-up
* Remove obsolete MappingProcessor
* Reactive cleanup backward incompatible change

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
  • Loading branch information
danielkec authored Mar 25, 2020
1 parent ebf787b commit 72e97aa
Show file tree
Hide file tree
Showing 25 changed files with 35 additions and 2,448 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,40 @@ This is the third milestone release of Helidon 2.0.

### Backward incompatible changes

#### Removal of processor-like operators
The formerly public `Flow.Processor` implementations performing common operations have been removed.
Users should use the respective operators from `Single` and `Multi` instead:

```java
// before
Flow.Publisher<Integer> source = ...
MappingProcessor<Integer, String> mapper = new MappingProcessor<>(Integer::toString);
source.subscribe(mapper);
mapper.subscribe(subscriber);

// after
Flow.Publisher<Integer> source = ...
Multi.from(source)
.map(Integer::toString)
.subscribe(subscriber)
```

#### Removal of Flows
The class was providing basic `Flow.Publisher` implementations. Users should pick one of the static methods of
`Single` or `Multi` instead, which provide the additional benefits of having fluent operators available to them for
assembling reactive flows conveniently:
```java
// before
Flow.Publisher<Integer> just = Flows.singletonPublisher(1);
Flow.Publisher<Object> empty = Flows.emptyPublisher();

// after
Multi<Integer> just1 = Multi.singleton(1);
Single<Integer> just2 = Single.just(1);

Multi<Object> empty1 = Multi.empty();
Single<Object> empty2 = Single.empty();
```

## [2.0.0-M2]

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 72e97aa

Please sign in to comment.