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:
parent
c67a86ac99
commit
e744e583e5
2 changed files with 17 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue