Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect and error on flow control cycles #47

Open
glyph opened this issue Dec 8, 2015 · 0 comments
Open

detect and error on flow control cycles #47

glyph opened this issue Dec 8, 2015 · 0 comments

Comments

@glyph
Copy link
Member

glyph commented Dec 8, 2015

If you construct a fan.In that feeds a fan.Out which in turn feeds that same fan.In (even if this is indirected through a number of intermediary Tubes) it will create a flow graph that will be permanently paused, never passing any traffic. This is an inscrutable failure mode. It would be nice to see immediately that you have set up a cycle and get an exception.

It might be interesting to implement this in terms of a general-purpose interface for getting topology information from a Fount or Drain (maybe a Node interface with two interfaces: "downstreams" and "upstreams"). This sort of interface could also be used for visualizations (graphviz here we come)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant