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

Add actor_fn #584

Merged
merged 6 commits into from
Jul 14, 2023
Merged

Add actor_fn #584

merged 6 commits into from
Jul 14, 2023

Conversation

Thomasdezeeuw
Copy link
Owner

Instead of using my_actor as fn(_) -> _ we can now use actor_fn. This has the benefit of not having to worry about the amount of arguments, etc., but it's also zero-sized for function (where function pointers take 64 bits).

A workaround for rustc error E0207. This is the first step in removing
the `actor as fn(_) -> _` lines.
So it can be used with synchronous actors as well.
Same as what we did for actor::Context.
@Thomasdezeeuw Thomasdezeeuw merged commit 6ae8b3f into main Jul 14, 2023
3 of 8 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the actor-fn branch July 14, 2023 10:01
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.

1 participant