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

Rewrite Spawn trait #634

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Rewrite Spawn trait #634

wants to merge 10 commits into from

Conversation

Thomasdezeeuw
Copy link
Owner

This splits it into two traits: SpawnLocal and Spawn. SpawnLocal is for
thread-local actors and futures, while Spawn is for thread-safe.

Closes #311

Returns itself as FutureOptions.
This splits it into two traits: SpawnLocal and Spawn. SpawnLocal is for
thread-local actors and futures, while Spawn is for thread-safe.
To make SpawnLocal and Spawn more usable.
Matching the common naming scheme.
@Thomasdezeeuw
Copy link
Owner Author

Need to fix the name implementation for Process for futures, now it always returns FutureProcess making it useless.

@Thomasdezeeuw
Copy link
Owner Author

Also need to look at whether the double catching of panics will cause (performance) issues.

So we don't have to duplicate the code when adding new ActorOptions.
@Thomasdezeeuw
Copy link
Owner Author

TODO:

  • Fix name of the process when spawning ActorFutures. Maybe requires Process to be specialised?
  • Don't double catch_unwind.
  • Still like a generic SpawnWherever trait that doesn't concern itself about being local or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve usability of the Spawn trait
1 participant