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

kqueue.go: Remove timeout from reading kevents. #262

Closed

Commits on Aug 1, 2022

  1. kqueue.go: Remove timeout from reading kevents.

    Instead of having a timeout that would trigger the readEvents to check it's
    done channel, run a seaprate go-routine that watches w.done, and directly
    closes the KQueue FD.
    
    This change allows a go-process to fully sleep and go into CPU idle mode,
    instead of waking up every 100ms on macOS.
    paulquerna-okta authored and arp242 committed Aug 1, 2022
    Configuration menu
    Copy the full SHA
    21efafc View commit details
    Browse the repository at this point in the history