fubark / cyber

Fast and concurrent scripting.
https://cyberscript.dev
MIT License
1.16k stars 38 forks source link

issues with sleep function #47

Closed GabCores closed 1 year ago

GabCores commented 1 year ago

hi , testing sleep function

import os 'os' sleeptime = 4000 while true: os.sleep(sleeptime) resp = fetchUrl( url ) print resp

delay is not working , no matter of sleeptime value May doing something wrong ? thanks !

fubark commented 1 year ago

Are you on windows by chance, it's currently a no-op on Windows. I'll add that soon.

GabCores commented 1 year ago

yes it was on Windows . Testing and working on Linux , I'll continue on this OS . thanks !

fubark commented 1 year ago

This was just added for Windows. Feel free to report any issues in a net ticket.