Skip to content
New issue

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

os.sleep is not working properly #119

Open
hamidb80 opened this issue Jun 4, 2021 · 1 comment
Open

os.sleep is not working properly #119

hamidb80 opened this issue Jun 4, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@hamidb80
Copy link

hamidb80 commented Jun 4, 2021

info:

  • nim compiler version: 1.4.8
  • inim version : 0.6.1
  • os: windows 10

the code:

import os

nim> proc uuu=   
     echo "start"
     sleep 1000
     echo "end"

nim> uuu()

result:
it prints "end" immediately after printing "start"

expected behavior:
it should sleep for 1s and then print "end"

@0atman
Copy link
Collaborator

0atman commented Mar 30, 2022

Confirmed.

I wonder if it is something to do with the whole line being executed and only then the output is printed?

@0atman 0atman added bug Something isn't working help wanted Extra attention is needed labels Mar 30, 2022
@hamidb80 hamidb80 changed the title os.sleep not working properly os.sleep isnot working properly Apr 10, 2022
@hamidb80 hamidb80 changed the title os.sleep isnot working properly os.sleep is not working properly Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants