Alarms don't start to lag if the alarm takes longer to execute than the interval itself
							parent
							
								
									303b3f2f83
								
							
						
					
					
						commit
						61836bc69a
					
				| 
						 | 
				
			
			@ -35,7 +35,7 @@ ERROR: bad-alarm-frequency frequency ;
 | 
			
		|||
    [ time>> ] dip before=? ;
 | 
			
		||||
 | 
			
		||||
: reschedule-alarm ( alarm -- )
 | 
			
		||||
    dup [ swap interval>> time+ ] change-time register-alarm ;
 | 
			
		||||
    dup [ swap interval>> time+ now max ] change-time register-alarm ;
 | 
			
		||||
 | 
			
		||||
: call-alarm ( alarm -- )
 | 
			
		||||
    [ entry>> box> drop ]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue