Merge pull request #19548 from akka/wip-19522-asPublisher-enum-RK

#19522 make javadsl.Sink.asPublisher nicer
This commit is contained in:
Roland Kuhn 2016-01-21 16:57:34 +01:00
commit 53ad1085ec
12 changed files with 43 additions and 12 deletions

View file

@ -42,7 +42,7 @@ class ReactiveStreamsDocSpec extends AkkaSpec {
val impl = new Fixture {
override def tweets: Publisher[Tweet] =
TwitterStreamQuickstartDocSpec.tweets.runWith(Sink.asPublisher(false))
TwitterStreamQuickstartDocSpec.tweets.runWith(Sink.asPublisher(fanout = false))
override def storage = TestSubscriber.manualProbe[Author]

View file

@ -409,7 +409,7 @@ by using the Publisher-:class:`Sink`:
.. includecode:: ../code/docs/stream/ReactiveStreamsDocSpec.scala#source-publisher
A publisher that is created with ``Sink.asPublisher(false)`` supports only a single subscription.
A publisher that is created with ``Sink.asPublisher(fanout = false)`` supports only a single subscription.
Additional subscription attempts will be rejected with an :class:`IllegalStateException`.
A publisher that supports multiple subscribers using fan-out/broadcasting is created as follows: