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

Add support for custom kqueue filters #68

Closed
notgull opened this issue Jan 1, 2023 · 0 comments · Fixed by #83
Closed

Add support for custom kqueue filters #68

notgull opened this issue Jan 1, 2023 · 0 comments · Fixed by #83

Comments

@notgull
Copy link
Member

notgull commented Jan 1, 2023

As suggested here, it may be beneficial to allow support for custom event filters for kqueue-targeting systems, such as EVFILT_SIGNAL for waiting on signals.

Maybe we could have an extension trait API, to the tune of:

pub struct Poller { /* ... */ }

pub mod os {
    #[cfg(uses_kqueue)]
    pub mod kqueue {
        pub trait PollerExt : Sealed {
            fn add_signal(/* ... */);
        }

        impl PollerExt for crate::Poller {
            /* ... */
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant