mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
ef4a14996a
Add usleep method that provides task-aware sleep behavior with microsecond precision. This overrides mruby-sleep's usleep when both gems are loaded. The implementation converts microseconds to milliseconds and uses the same sleep_ms_impl as sleep_ms, providing cooperative sleep within tasks and signal-safe blocking sleep otherwise. Co-authored-by: Claude <noreply@anthropic.com>