We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A user might wonder how to pass arguments when spawning an actor. This is how you do it:
func newPlayerState(health int, username string) actor.Producer { return func() actor.Receiver { return &PlayerState{ Health: health, Username: username, } } }
The text was updated successfully, but these errors were encountered:
document passing arguments to actor creation.
781d805
closes: anthdm#96
make the links a bit nicer.
555a0f1
document how to pass arguments to actor creation. closes: anthdm#96
8d96f46
7b29e83
perbu
No branches or pull requests
A user might wonder how to pass arguments when spawning an actor. This is how you do it:
The text was updated successfully, but these errors were encountered: