Our great sponsors
-
ponyc
Pony is an open-source, actor-model, capabilities-secure, high performance programming language
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The way I typically unify messages is define an enum, and map/merge channel receivers. tokio-stream would probably work with these examples. Here's an example from a fuzzy-finder implementation: https://github.com/austinjones/tab-rs/blob/main/tab-command/src/service/terminal/fuzzy.rs#L332
I found some additional information on how Pony approaches the problem: https://github.com/ponylang/ponyc/commit/1104a6ccc182d94e3ec25afa4a2d028d6c642cc4 https://github.com/ponylang/ponyc/pull/2264#issuecomment-345234994