mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
53a25bab14
mruby-sleep: declare slp_tm before #ifdef _WIN32 block to fix undeclared variable error in non-Windows branch. hal-posix-socket: use #if defined(HAVE_SA_LEN) && HAVE_SA_LEN instead of #ifdef HAVE_SA_LEN, since mruby-socket defines HAVE_SA_LEN to 0 on non-BSD platforms. 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: