system.sleep()
See original GitHub issue[@gavinking] I think we should have a sleep()
function in the language module. This can be implemented in both JS and Java, right?
[Migrated from ceylon/ceylon.language#596]
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Sleep (system call) - Wikipedia
Sleep (system call) ... A computer program (process, task, or thread) may sleep, which places it into an inactive state for a period...
Read more >system-sleep - npm
A real and better system sleep() for Node. Works on every platform.. Latest version: 1.3.7, last published: 2 years ago.
Read more >System.Sleep(Integer) Method - Business Central
When you use the Sleep method, control is guaranteed to return to the operating system for at least Duration milliseconds.
Read more >Pausing Execution with Sleep (The Java™ Tutorials ...
Thread.sleep causes the current thread to suspend execution for a specified period. This is an efficient means of making processor time available to...
Read more >sleep() Function in C - GeeksforGeeks
sleep() function in C allows the users to wait for a current thread for a specific time. Other operations of the CPU will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems to me the appropriate platform-neutral approach to this would have to be to use a callback, so you do not assume the platform you’re running on has Threads or similar:
Seems quite reasonable to me. Unless you want to add continuations to the language!