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

can go below 0 & no means of resetting to 0 #2

Open
Steve-Mcl opened this issue Jul 25, 2022 · 0 comments
Open

can go below 0 & no means of resetting to 0 #2

Steve-Mcl opened this issue Jul 25, 2022 · 0 comments

Comments

@Steve-Mcl
Copy link

Hi, great node and great concept.

However, I often give up and DIY this with an array (FIFO)

The issue is a flow glitch clocks the node below 0, the semaphore blocks until it is >= 0
The only way to get back to 0 is to push +n messages through a take node until it is zero once more.

Perhaps additional control method (or additional "clear" node) to clear/reset the semaphore queue would help the user recover more easily?
Also, preventing the semephe going below zero would help (i.e. only decrement current if there is something in the queue)

Thanks.

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