-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix debounce
fails
#344
Fix debounce
fails
#344
Conversation
df4bc3e
to
9e88ffb
Compare
Have to run it enough time to see that it fixes the issue ? It got me thinking that channel is a bad mechanism for given problem, due to the inability to wait on it for empty state. |
This problem is not due to the use of channels, but due to the switching caused by |
How switching causes problems here? |
To understand this, need to study the work of My guess is that for some reason the |
debouncer_test
, replace the runtime.Gosched
to the time.Sleep
debouncer
fails
3ba6501
to
6714afb
Compare
8bc95ab
to
cce2c90
Compare
@sylwiaszunejko , can you please take a look at it |
c13ca96
to
7eb45a6
Compare
7eb45a6
to
7b70526
Compare
Reason - sometimes this test panics: