every ( quot interval-duration -- timer )
Timers

Prev:stop-timer ( timer -- )
Next:later ( quot delay-duration -- timer )


Vocabulary
timers

Inputs
quota quotation
interval-durationa duration


Outputs
timera timer


Word description
Creates a timer that calls the quotation repeatedly, using duration as the frequency. The first call of quot will happen immediately. If the quotation throws an exception, the timer will stop.

Examples
USING: timers io calendar ; [ "Hi Buddy." print flush ] 10 seconds every drop


Definition


: every ( quot interval-duration -- timer )
f swap (start-timer) ;