Files
mruby-mruby/mrbgems/mruby-sleep
Yukihiro "Matz" Matsumoto b416d29010 mruby-sleep,mruby-task: define sleep methods as module functions
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>
2025-10-08 23:55:22 +09:00
..
2021-03-01 10:06:17 +10:00
2021-05-03 23:17:04 +09:00
2024-05-09 17:08:27 +09:00

Sleep Module for mruby

mruby sleep module

Install by mrbgems

  • add conf.gem line 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: