| 95 | end |
| 96 | |
| 97 | def advance |
| 98 | @mutex.synchronize do |
| 99 | @count_current += 1 |
| 100 | |
| 101 | return if @count_max.zero? |
| 102 | |
| 103 | time_current = Time.now |
| 104 | if time_current - @time_previous <= 1 |
| 105 | return |
| 106 | end |
| 107 | |
| 108 | show_progress(time_current) |
| 109 | end |
| 110 | end |
| 111 | |
| 112 | def increment_max |
| 113 | @mutex.synchronize do |
no outgoing calls
no test coverage detected