-
Notifications
You must be signed in to change notification settings - Fork 264
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
Addressable ports in WirePattern #240
Comments
As a clarification, the |
In some cases you'd want input ports to wait for all sockets too. We might want a config option for this. |
See implementation details below: If a
If an data.arr = {
1: 'bar'
} But if several indexes were triggered while waiting for other ports, it may contain several elements: data.arr = {
0: 'foo',
1: 'bar'
} Therefore for components with just one There are cases when a component should act the opposite way: wait for just any noflo.helpers.WirePattern component,
in: [ 'd1', 'd2' ]
params: 'p'
out: 'out'
arrayPolicy: # these are defaults
in: 'any' # trigger on any index
params: 'all' # wait for all indexes Other combinations are also possible, e.g.: noflo.helpers.WirePattern component,
in: [ 'd1', 'd2' ]
params: 'p'
out: 'out'
arrayPolicy:
in: 'all' # wait for all indexes
params: 'all' # wait for all indexes |
This feature has been postponed for a while due to lack of use cases, but now use cases for it are starting to emerge.
Previously, we thought of this feature as of being able to specify port indices in WirePattern parameters, e.g.
But that didn't make much sense because specifying indices this way makes the data processing very limited.
What makes sense is dealing with addressable ports as a whole. E.g. if
foo
is an addressable port, WirePattern would wait for data from all sockets attached tofoo
to arrive before passing the data further as an array.The text was updated successfully, but these errors were encountered: