Skip to content
New issue

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

Implement the builder pattern for spawning actors. #87

Closed
rsimmonsjr opened this issue Sep 19, 2019 · 1 comment
Closed

Implement the builder pattern for spawning actors. #87

rsimmonsjr opened this issue Sep 19, 2019 · 1 comment
Assignees
Labels
api change breaking change Breaks API for current users.

Comments

@rsimmonsjr
Copy link
Owner

rsimmonsjr commented Sep 19, 2019

Instead of the current system the user should be able to create actors in the following manners:

// Normal vanilla spawn
system.spawn().with(state, processor);
// spawn with a particular name.
system.spawn().name("MyActor").with(state, processor);
// Spawn with a size for the message channel that overrides default.
system.spawn().channel_size(100).with(state, processor);

The current spawn() and spawn_named() would go away in favor of this and examples would show the above for named actors.

@rsimmonsjr
Copy link
Owner Author

Implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api change breaking change Breaks API for current users.
Projects
None yet
Development

No branches or pull requests

1 participant