mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
b416d29010
change sleep, usleep, sleep_ms from private methods to module functions to match cruby behavior where sleep can be called as both bare sleep and kernel.sleep. Co-authored-by: Claude <noreply@anthropic.com>
Sleep Module for mruby
mruby sleep module
Install by mrbgems
- add
conf.gemline to your build configuration.
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :core => 'mruby-sleep'
end
Example
sleep(10)
usleep(10000)
License
under the MIT License: