-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support for actors expressed as async/await fuctions? #13
Comments
I presume this would mean: support actors whose It seems that Actix also somehow supports both sync and async actors through different implementations of its ActorContext trait. But Actix is clearly async-first. Maybe a good time to consider this would be when we dog-food it. Otherwise I'd fear that async support could suffer from being a second-class citizen. |
Maybe another question worth asking is: how hard would it be to add async support after the initial release? Would it require major API changes? |
Correct me if I'm wrong but you can always run an async runtime inside a blocking function (such as inside actor's This is obviously wasteful when you want to have many such actors, so I suppose the point of this issue is instead to run a single runtime that the async actors can run on top of? Another consideration is that async frameworks typically use tasks as units of execution and take care of running them on their own thread pools (at least in case of multithreaded executors such as the work-stealing one in |
Do we want?? Do we not want??
The text was updated successfully, but these errors were encountered: