I have a flow graph that needs initialization and post processing. I'd like
to do this within an actor. The actor receives a message, the flow graph is
initialized, then the message is passed to it, then its result is sent to
different actors. I don't see this use case in the docs so I don't
That’s perfectly possible.
Yet you have to be careful to not close over any mutable actor state, e.g.
vars, ActorContext, sender(), etc. A good way to avoid that is define the flow
graph via a method in the companion object of your actor.
Heiko
--
Heiko Seeberger
Home: heikoseeberger.de