Skip to content

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
Discussion options

You must be logged in to vote

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

a.link(b);
b.link(a);

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@slawlor
Comment options

@phil-skillwon
Comment options

@slawlor
Comment options

@nsengupta
Comment options

@slawlor
Comment options

Answer selected by phil-skillwon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants