mirror of
https://github.com/apple/swift-system
synced 2026-11-23 04:34:26 +00:00
## Motivation To observe events on file descriptors IO_URING supports the `pollAdd` operation. This is useful when you want to observe a file descriptor becoming ready to read or write ## Modifications This PR adds a new `IORing.Request.PollEvents` option set to model the poll masks. Furthermore, it adds a new `static func pollAdd` to the `IORing.Request`. ## Result We can now use IO_URING to poll for events on file descriptors.