Files
mruby-mruby/mrbgems/mruby-sleep
Yukihiro "Matz" Matsumoto fdaec90780 Make Kernel#sleep to accept float as a duration time.
But when `MRB_WITHOUT_FLOAT` is set, there's no way to sleep for
sub seconds. So mruby specific `usleep` is provided.
2018-09-06 23:42:05 +09:00
..
2018-09-05 13:30:14 +09:00
2018-09-05 13:30:14 +09:00
2018-09-05 13:30:14 +09:00
2018-09-05 13:30:14 +09:00
2018-09-05 13:30:14 +09:00
2018-09-05 13:30:14 +09:00
2018-09-05 13:30:14 +09:00

Sleep Module for mruby

mruby sleep module

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :git => 'https://github.com/matsumoto-r/mruby-sleep.git'
end

example

Sleep::sleep(10)
Sleep::usleep(10000)

License

under the MIT License: