nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.22k stars 1.46k forks source link

fixes #23732, os.sleep(-1) now returns immediately #23734

Closed litlighilit closed 1 week ago

litlighilit commented 1 week ago

fixes #23732

ringabout commented 1 week ago

See also https://github.com/nim-lang/Nim/pull/17149

litlighilit commented 1 week ago

See also https://github.com/nim-lang/Nim/pull/17149

This PR also updates the doc,

so hopefully it can be said to solve this issue, too.

Anyway, there are langs like golang, accepting a negative value and doing nothing for it.

litlighilit commented 1 week ago

for ci:

sigh. I'd say this PR does nothing for macos but ci for macos failed...

ringabout commented 1 week ago

I'd say this PR does nothing for macos but ci for macos failed...

It's a known issue => https://github.com/nim-lang/Nim/pull/23728

github-actions[bot] commented 1 week ago

Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from 2a658c64d8c24ad4a0944e01ba3e005bfb12534f

Hint: mm: orc; opt: speed; options: -d:release 178823 lines; 8.439s; 664.246MiB peakmem