Skip to content

What strategy should be used to initialize an actor state asynchronously? #145

Answered by ncthbrt
tylerhjones asked this question in Q&A
Discussion options

You must be logged in to vote

Alternatively, you could dispatch a message immediately after creating the actor inside the initialStateFunction (as context is available). This would guarantee that the message would be processed first

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ncthbrt
Comment options

Answer selected by tylerhjones
@tylerhjones
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants