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

Close ch and cancel ctx while processing the queue #3

Closed
pancsta opened this issue Jan 12, 2024 · 0 comments · Fixed by #6
Closed

Close ch and cancel ctx while processing the queue #3

pancsta opened this issue Jan 12, 2024 · 0 comments · Fixed by #6
Labels
bug Something isn't working p:1 High priority

Comments

@pancsta
Copy link
Owner

pancsta commented Jan 12, 2024

Currently When, WhenNot and GetStateCtx are implemented using channels. This adds mico-delays (see TestStateCtx) because of goroutine scheduling.

It could be easily avoided if the calculation happened after every tick inside processQueue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p:1 High priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant