2008-02-21 20:19:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								IN:  alarms 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-21 21:57:41 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								USING:  help.markup  help.syntax  calendar  quotations  ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-21 20:19:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  alarm 
							 
						 
					
						
							
								
									
										
										
										
											2008-05-21 22:31:54 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $class-description "An alarm. Can be passed to "  { $link cancel-alarm } "."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-21 20:19:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HELP:  add-alarm 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-26 19:47:05 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "quot"  quotation } { "time"  timestamp } { "frequency"  "a "  { $link duration } " or "  { $link f  } } { "alarm"  alarm } }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-21 20:19:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ $description "Creates and registers an alarm. If "  { $snippet "frequency"  } " is "  { $link f  } ", this will be a one-time alarm, otherwise it will fire with the given frequency. The quotation will be called from the alarm thread."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-22 00:47:06 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								HELP:  later 
							 
						 
					
						
							
								
									
										
										
										
											2008-03-11 20:51:58 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $values { "quot"  quotation } { "dt"  duration } { "alarm"  alarm } }
							 
						 
					
						
							
								
									
										
										
										
											2008-07-08 16:50:38 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Creates and registers an alarm which calls the quotation once at "  { $snippet "time"  } " from now."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-22 00:47:06 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-21 20:19:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								HELP:  cancel-alarm 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $values { "alarm"  alarm } }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-23 23:29:46 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $description "Cancels an alarm. Does nothing if the alarm is not active."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-21 20:19:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ARTICLE: "alarms"  "Alarms" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Alarms provide a lightweight way to schedule one-time and recurring tasks without spawning a new thread." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection alarm }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{ $subsection add-alarm }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-22 00:47:06 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsection later }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-22 17:18:45 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ $subsection cancel-alarm }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								"Alarms do not persist across image saves. Saving and restoring an image has the effect of calling "  { $link cancel-alarm } " on all "  { $link alarm } " instances."  ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-21 20:19:21 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ABOUT: "alarms"