From df75a05532c05800843e007bd40df1e3c991e365 Mon Sep 17 00:00:00 2001 From: Scott Bellware Date: Fri, 11 Jan 2019 11:42:11 -0500 Subject: [PATCH] Clarification of delay --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e61156d..6afce2d 100644 --- a/README.md +++ b/README.md @@ -105,11 +105,11 @@ The delay condition can varied by specifying a lambda that will be evaluated to delay_condition = -> { |result| result.even?(result) } Poll.(interval_milliseconds: 100, delay_condition: delay_condition) do - 2 # Result is even, therefore poll loop restarts + 2 # Result is even, therefore delay 100 milliseconds and re-execute the block end Poll.(interval_milliseconds: 100, delay_condition: delay_condition) do - 3 # Result is odd, therefore poll loop ends + 3 # Result is odd, therefore end the poll loop end ```