!str - 18808 - Removes Sink.fanoutPublisher and makes Sink.publisher specify number of subscribers
Sink.publisher now takes a max number of Subscribers and the elasticity between concurrent Subscribers.
This commit is contained in:
parent
33444c572b
commit
f839a1f85d
54 changed files with 246 additions and 238 deletions
|
|
@ -22,7 +22,7 @@ class TestPublisherSubscriberSpec extends AkkaSpec {
|
|||
"have all events accessible from manual probes" in assertAllStagesStopped {
|
||||
val upstream = TestPublisher.manualProbe[Int]()
|
||||
val downstream = TestSubscriber.manualProbe[Int]()
|
||||
Source(upstream).runWith(Sink.publisher)(materializer).subscribe(downstream)
|
||||
Source(upstream).runWith(Sink.publisher(1))(materializer).subscribe(downstream)
|
||||
|
||||
val upstreamSubscription = upstream.expectSubscription()
|
||||
val downstreamSubscription: Subscription = downstream.expectEventPF { case OnSubscribe(sub) ⇒ sub }
|
||||
|
|
@ -46,7 +46,7 @@ class TestPublisherSubscriberSpec extends AkkaSpec {
|
|||
"handle gracefully partial function that is not suitable" in assertAllStagesStopped {
|
||||
val upstream = TestPublisher.manualProbe[Int]()
|
||||
val downstream = TestSubscriber.manualProbe[Int]()
|
||||
Source(upstream).runWith(Sink.publisher)(materializer).subscribe(downstream)
|
||||
Source(upstream).runWith(Sink.publisher(1))(materializer).subscribe(downstream)
|
||||
val upstreamSubscription = upstream.expectSubscription()
|
||||
val downstreamSubscription: Subscription = downstream.expectEventPF { case OnSubscribe(sub) ⇒ sub }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue