Replies: 1 comment 3 replies
-
Yeah thanks for bringing this up. This is something I will think about, I agree this clock example with bad internet connection can be a little weird. We'll brainstorm some good way to potentially add this functionality. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed clock example clock used
await asyncio.sleep(1)
to show timer.But that is not exactly one second, there is an difference of about 10ms after network synchronization.
The final performance is that it skips 1 second after running a while.
Of course we could use
sleep(0.1)
for query faster, but that's definite not best practice.Main issue is we need have ability to operate BOM, like
setTimeout()
Beta Was this translation helpful? Give feedback.
All reactions