Files
swift-nio/Sources
ed0b013c57 Split Selector into separate files per backend. (#1795)
Motivation:
Currently all backends are platform-conditional in the `Selector` code, making it
harder to read and difficult to extend for future new backend implementations.
By splitting the `Selector` into a generic part and per-backend platform implementation
it is easier to add additional backends in the future.

Modifications:
Split Selector into `SelectorGeneric`, `SelectorEpoll` and `SelectorKqueue`.
Add a _SelectorBackendProtocol that should be implemented by actual backends.
Fixed tests.

Result:
- Easier to read code
- Makes it easier to add new backends

Co-authored-by: Cory Benfield <lukasa@apple.com>
Co-authored-by: Johannes Weiss <johannesweiss@apple.com>
2021-04-09 16:49:02 +01:00
..
2021-01-22 18:39:10 +00:00