We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sleepAsync takes float (???), it should have same proc signature than sleep and use Natural argument only.
sleepAsync
float
sleep
Natural
import asyncdispatch, times proc main(a: float or int) {.async.} = let t = now() echo "BEFORE\T", t, '\T', a await sleepAsync(a) echo "AFTER\T", t - now(), '\n' waitFor main(1) # Control waitFor main(0.0) waitFor main(-0.0) waitFor main(1.0) waitFor main(-1.0) waitFor main(-1.0) waitFor main(NaN) waitFor main(+Inf) waitFor main(-Inf) waitFor main(Inf)
The text was updated successfully, but these errors were encountered:
see #617
for a better solution
Sorry, something went wrong.
I agree, but still this needs to be Deprecated, or remove the float overload, or something...
No branches or pull requests
sleepAsync
takesfloat
(???), it should have same proc signature thansleep
and useNatural
argument only.The text was updated successfully, but these errors were encountered: