diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2018-02-28 20:02:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-28 20:02:17 +0000 |
commit | 99ae9269f0163e79e3a20a92f872c327d681cf30 (patch) | |
tree | d43c5377e0ae438528717035d3b5906f75bba3fc /lib | |
parent | 91cab6dbd3867db93e7fd266539d35288af3d190 (diff) | |
parent | d6229f20ffce969a48b100d45e4b3b165af2ce72 (diff) | |
download | Nim-99ae9269f0163e79e3a20a92f872c327d681cf30.tar.gz |
Merge pull request #7251 from zevv/issue-6270-sleepAsync-timer-resolution
Allow float argument to sleepAsync() to allow sub-millisecond resolution
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/asyncdispatch.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index a52c667fc..dfc7201b8 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -1513,7 +1513,7 @@ proc poll*(timeout = 500) = # Common procedures between current and upcoming asyncdispatch include includes.asynccommon -proc sleepAsync*(ms: int): Future[void] = +proc sleepAsync*(ms: int | float): Future[void] = ## Suspends the execution of the current async procedure for the next ## ``ms`` milliseconds. var retFuture = newFuture[void]("sleepAsync") |