trustmaster / goflow

Flow-based and dataflow programming library for Go (golang)
MIT License
1.6k stars 125 forks source link

Multiple Inputs connecting to same Output #36

Closed Chillance closed 7 years ago

Chillance commented 7 years ago

Hey!

I recall reading somewhere that this doesn't support multiple connections to the same connector, but is this something that could be made possible?

I'm making a node system that will enable connecting several different inputs to the same output, so this is why I'm wondering.

Thanks!

lovromazgon commented 7 years ago

According to @trustmaster this has been implemented and is called "Array Ports". I would also like to use this feature but can't find any examples. Could someone help me out please?

trustmaster commented 7 years ago

The test you are looking for is here: https://github.com/trustmaster/goflow/blob/master/network_test.go#L193 (see the component using it above, it's called rr).