Is there a way to achieve a bidirectional link similar to that between two actors in Erlang #166
Answered
by
slawlor
phil-skillwon
asked this question in
Q&A
-
Two actors in ractor are linked using the link method, which is unidirectional. Is there a way to achieve a bidirectional link similar to that between two actors in Erlang, where no matter who exits first, the other actor will receive an exit event. |
Beta Was this translation helpful? Give feedback.
Answered by
slawlor
Sep 21, 2023
Replies: 1 comment 6 replies
-
You can just call link in reverse to bi directionally connect them. I suppose the current solution is more akin to But you could do a.link(b);
b.link(a); |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
phil-skillwon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just call link in reverse to bi directionally connect them. I suppose the current solution is more akin to
monitor
in Erlang.But you could do