nio-blocks / counter

Counter, CounterFast, and NumericCounter count the number of signals that pass through the block
0 stars 1 forks source link

Discussion: How do we handle resets of empty groups? #24

Open mattdodge opened 9 years ago

mattdodge commented 9 years ago

Consider the following situation:

Pros to notifying a 0 cumulative count:

Cons to notifying a 0 cumulative count:

hansmosh commented 8 years ago

Not notifying 0 - In some services, it is important to know that a group has 0 signals since the last reset. If the counter block did not output the 0 count groups, is there another block that could be put after the counter to get those 0 count signals? If so, we could add that info as a helpful tip in the counter README.

Notifying 0 - If we decide to leave it, we could at least add a flag to the "reset" command to clear empty groups. Or even a bool property on the block.