untu / comedy

Node.js actor framework.
Eclipse Public License 1.0
653 stars 36 forks source link

ActorRef passing is somewhat limited. #53

Open pct-cclausen opened 3 years ago

pct-cclausen commented 3 years ago

Currently ActorRefs can be passed to Actor calls, but when using forked or threaded actors, this only is correctly handled for a few cases:

Nesting is not supported at all, so passing a method parameter of types {a: ActorRef, b: ActorRef} fails. Additionally you can also not return ActorRefs from actor methods. There are workaround, but they are cumbersome. I think bus messages also cannot transport ActorRefs.

It would make some scenarios easier to handle to add handling in more cases.