fixes a serious poll() regression that caused poll() to ignore the timeout parameter

This commit is contained in:
Andreas Rumpf
2017-12-28 19:54:55 +01:00
parent e695f9d94e
commit 0a3cd6d9ba

View File

@@ -1493,7 +1493,7 @@ proc poll*(timeout = 500) =
## Waits for completion events and processes them. Raises ``ValueError``
## if there are no pending operations. This runs the underlying OS
## `epoll`:idx: or `kqueue`:idx: primitive only once.
discard runOnce()
discard runOnce(timeout)
# Common procedures between current and upcoming asyncdispatch
include includes.asynccommon