Fix issue #11 (non-blocking pend / with timeout)

I chose `float` milliseconds for the timeout as it seems to be the most readable.