]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove the word 'alarm' from timers docs.. similar-0.94
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 18 Sep 2010 16:37:47 +0000 (11:37 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 18 Sep 2010 16:37:47 +0000 (11:37 -0500)
basis/timers/timers-docs.factor

index fb07c8a4cc27abf806f42c2472630289f35c8ce6..f3a3e4437b5b646ff95727e0ced3d4a2756d2ab3 100644 (file)
@@ -53,8 +53,8 @@ HELP: delayed-every
     }\r
 } ;\r
 \r
-ARTICLE: "timers" "Alarms"\r
-"The " { $vocab-link "timers" } " vocabulary provides a lightweight way to schedule one-time and recurring tasks. Alarms run in a single green thread per timer and consist of a quotation, a delay duration, and an interval duration. After starting a timer, the timer thread sleeps for the delay duration and calls the quotation. Then it waits out the interval duration and calls the quotation again until something stops the timer. If a recurring timer's quotation would be scheduled to run again before the previous quotation has finished processing, the timer will be run again immediately afterwards. This may result in the timer falling behind indefinitely, in which case the it will run as often as possible while still allowing other green threads to run. Recurring timers that execute 'on time' or 'catch up' will always be scheduled for an exact multiple of the interval from the original starting time to prevent the timer from drifting over time. Alarms use " { $link nano-count } " as the timing primitive, so they will continue to work across system clock changes." $nl\r
+ARTICLE: "timers" "Timers"\r
+"The " { $vocab-link "timers" } " vocabulary provides a lightweight way to schedule one-time and recurring tasks. Timers run in a single green thread per timer and consist of a quotation, a delay duration, and an interval duration. After starting a timer, the timer thread sleeps for the delay duration and calls the quotation. Then it waits out the interval duration and calls the quotation again until something stops the timer. If a recurring timer's quotation would be scheduled to run again before the previous quotation has finished processing, the timer will be run again immediately afterwards. This may result in the timer falling behind indefinitely, in which case the it will run as often as possible while still allowing other green threads to run. Recurring timers that execute 'on time' or 'catch up' will always be scheduled for an exact multiple of the interval from the original starting time to prevent the timer from drifting over time. Timers use " { $link nano-count } " as the timing primitive, so they will continue to work across system clock changes." $nl\r
 "The timer class:"\r
 { $subsections timer }\r
 "Create a timer before starting it:"\r