Skip to content

Avoid pulling on timeout_ms = 0#31

Open
Familex wants to merge 2 commits intoAndreasBackx:mainfrom
Familex:zero-timeout-support
Open

Avoid pulling on timeout_ms = 0#31
Familex wants to merge 2 commits intoAndreasBackx:mainfrom
Familex:zero-timeout-support

Conversation

@Familex
Copy link
Copy Markdown

@Familex Familex commented Dec 27, 2024

Better fix for #2.

Currently events processed in infinite loop with timeout_ms rate. There is blocking recv in mpsc::Receiver that better suited for this purpose (timeout_ms = 0).

Also added MIN_TIMEOUT_MS constant to remove the magic number from the code.

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

Successfully merging this pull request may close these issues.

1 participant