Klangism

A blog about the tools, methods and thinking of successful software development and developers. Viktor Klang is a code connoisseur and pragmatic software professional currently residing in the exotic Helsingborg and working as Akka Tech Lead at Typesafe Inc.. Follow on twitter?

Mar 6

Implementing PostStart in #Akka

This question comes up every now and then, and my answer has since the first time, been refined, so I thought I’d give the answer here.

“How do I run some initialization logic in the thread of the dispatcher and not the creator of the actor?”

I present to you, PostStart:

If you can’t see the code, click here

Easy?

Enjoy!


  1. imxiaobo reblogged this from klangism
  2. klangism posted this