3 ms·
> In particular I’ve never seen an actor model with static types and how that would handle different types of messages coming into the mailbox. This is what su
by jen20 3y ago
> In particular I’ve never seen an actor model with static types and how that would handle different types of messages coming into the mailbox.
This is what sum types give you, or dynamic handler registration if you need to support runtime-configurable message types (perhaps plugins or something).
There’s a good article about Tokio tasks as actors: https://ryhl.io/blog/actors-with-tokio/ https://ryhl.io/blog/actors-with-tokio/
Of course, these still use channels!