mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Scale sleeping times to wait for the OS operations
This commit is contained in:
parent
7758849cb5
commit
a3c5dbf291
1 changed files with 4 additions and 0 deletions
|
@ -172,4 +172,8 @@ private
|
||||||
return written
|
return written
|
||||||
end while true
|
end while true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sleep(time)
|
||||||
|
super EnvUtil.apply_timeout_scale(time)
|
||||||
|
end
|
||||||
end if IO.method_defined?(:wait)
|
end if IO.method_defined?(:wait)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue