Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
a streamtools pattern that emits an initial condition
{"label":"root","blocks":[{"label":"","type":"latch","id":1,"inputs":[{"name":"in","value":null,"type":"any"},{"name":"ctrl","value":null,"type":"boolean"}],"outputs":[{"name":"true","type":"any"},{"name":"false","type":"any"}],"source":null,"position":{"x":366,"y":322}},{"label":"","type":"first","id":2,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"first","type":"boolean"}],"source":null,"position":{"x":253,"y":383}},{"label":"","type":"identity","id":4,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":180,"y":296}},{"label":"","type":"identity","id":7,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":509,"y":314}}],"connections":[{"from":{"id":2,"route":0},"to":{"id":1,"route":1},"id":3},{"from":{"id":4,"route":0},"to":{"id":1,"route":0},"id":5},{"from":{"id":4,"route":0},"to":{"id":2,"route":0},"id":6},{"from":{"id":1,"route":0},"to":{"id":7,"route":0},"id":8}],"groups":[{"id":0,"label":"root","children":[1,2,4,7],"position":{"x":0,"y":0}}],"sources":[],"links":[]}
@mikedewar

This comment has been minimized.

Copy link
Owner Author

mikedewar commented Nov 10, 2015

This emits a value whenever streamtools starts or the graph is reset. Useful for kicking off loops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.