Skip to content

Commit

Permalink
Merge pull request #7251 from zevv/issue-6270-sleepAsync-timer-resolu…
Browse files Browse the repository at this point in the history
…tion

Allow float argument to sleepAsync() to allow sub-millisecond resolution
  • Loading branch information
dom96 authored Feb 28, 2018
2 parents 91cab6d + d6229f2 commit 99ae926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/asyncdispatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 99ae926

Please sign in to comment.