Given a file descriptor number, is it possible to wait until the file descriptor is available for reading or writing in Node.js, without blocking the event loop?
Context: investigating writing my own package to talk to a PostgreSQL database via libpq, similar to the Python library streampq. streampq uses PQsocket to get a file descriptor number, and then Python's selectors module to wait on the file descriptor number, and I'm wondering if something similar is possible in Node.js