Deprecated – initially just played with this for mysql_adapter – the same information can be made available by piggy backing off async_in_progress and exposing a public method.
There’s also the option to use MYSQL_STATUS_READY, which libmysld sets as the status member of the Mysql struct.I found this to be slightly more reliable than vio_poll_read as the latter is best suited for poll, not select.