- handle messages sequentially per-actor (like Ractor, and like Bastion in practice)
- create your own future trait without async/await (like Actix)
I keep hoping the language team will get coroutines off the ground, but it hasn't happened yet.
- handle messages sequentially per-actor (like Ractor, and like Bastion in practice)
- create your own future trait without async/await (like Actix)
I keep hoping the language team will get coroutines off the ground, but it hasn't happened yet.
Actix does exactly that, but it needs a bespoke ActorFuture trait with extra poll arguments. But until https://lang-team.rust-lang.org/design_notes/general_corouti... gets worked through, there is no way for actix to support async/await.
If I'm understanding, then I don't yet follow the use case. You want to have multiple actors reading from the same message queue? Or different concurrent chunks inside of the actor?
This feels to me to strain against the actor design pattern a lot. I feel this often, that futures are somewhat in tension with actors. There are too many options.