Capture the Success companion object as well as its class (#24747)

The absence of this is something that caught me out, and others.
This commit is contained in:
Christopher Hunt 2018-03-19 13:06:53 +11:00 committed by Konrad `ktoso` Malawski
parent c67a86ac99
commit e744e583e5
2 changed files with 17 additions and 1 deletions

View file

@ -529,7 +529,10 @@ object Source {
*/
def actorRef[T](bufferSize: Int, overflowStrategy: OverflowStrategy): Source[T, ActorRef] =
actorRef(
{ case akka.actor.Status.Success(_) },
{
case akka.actor.Status.Success
case akka.actor.Status.Success(_)
},
{ case akka.actor.Status.Failure(cause) cause },
bufferSize, overflowStrategy)