mitchellh / libxev

libxev is a cross-platform, high-performance event loop that provides abstractions for non-blocking IO, timers, events, and more and works on Linux (io_uring or epoll), macOS (kqueue), and Wasm + WASI. Available as both a Zig and C API.
MIT License
2.07k stars 74 forks source link

Make `Stream` watcher directly accessible #26

Closed nikneym closed 1 year ago

nikneym commented 1 year ago

This would allow users to mixin Writable, Readable and Closeable to their own watchers. By that, file descriptors that are not supported directly by libxev can be implemented with ease.

mitchellh commented 1 year ago

👍 I think exposing this in the xev.stream namespace as you suggested in Discord makes sense. I'll get to it when I get to a computer.