Source actorRef[T] behaviour with Success objects

Hey there,

I’m using a Source.actorRef[T] and sending it an when stream processing is to complete. What I’m finding though is that the Success object is carried through the Source.actorRef's stream… which of course isn’t of type T and therefore renders as a class cast exception.



You are supposed to send the instance of the Success class instead of the Success object itself.

1 Like


Subsequent browsing shows that I’m not the only person that had such difficulty. I’ll try and get to a PR for the following issue next week:

Thanks for the help!

Just to close this off, I’ve now raised a PR.