Postgres & mio::Poll.poll


can i wait for notifications on a postgres connection and an udp socket (and/or a serial port) at the same time ?

i monitor several udp sockets (mio::net::UdpSocket from mio crate) and serial ports (mio_serial::Serial from mio-serial crate) for readable events using mio::Poll

can i add the postgres connection to mio::Poll ?

i do not have to use the mio crates, how can i block the program execution until a postgres notification is received or a packet on a udp sockect or a byte on a serial port ?

razvan radu

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.