Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I personnaly don't like the single enum model for messages. I prefer the generic Handler trait model.

Also another square that I have not circled with async actor other than actix is that all of them use mutable self and they dont have a great way to have long running tasks. Sometimes you would want to call a remote server without blocking the actor, in actix this is easy to do and you unamed child actors to do that. All those newer frameworks don't have the primitives.



> all of them use mutable self

As demonstrated in the linked tutorial, Ractor passes its handlers `&self` with `&mut State`.


It looks like the message type can be anything:

    type Msg = MyFirstActorMessage;




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: