no, this is not nice. :(

there is a switch statement lower in the code that says if this is a timeout of 0, then call pending other wise call IO.select