README.md in lps-0.2.0 vs README.md in lps-0.2.1
- old
+ new
@@ -48,9 +48,20 @@
```ruby
LPS.freq(10).loop { break if rand(10) == 0 }
```
+Changing loop frequency
+-----------------------
+
+```ruby
+i = 0
+LPS.while { i < 100 }.loop do |lps|
+ print '.'
+ lps.freq = i += 1
+end
+```
+
Falling behind
--------------
With LPS, the given loop block is run synchronously,
which means that if the block execution takes longer than the interval for the given frequency,