;cln: ui: clarify watch loop
This commit is contained in:
		
							parent
							
								
									c606f874fb
								
							
						
					
					
						commit
						a83c2f6950
					
				| @ -195,10 +195,11 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{inputopts_=_iopts,reportspec_=rsp | |||||||
|           writeChan eventChan dc |           writeChan eventChan dc | ||||||
|         watchDate new |         watchDate new | ||||||
| 
 | 
 | ||||||
|     withAsync |     withAsync  | ||||||
|       (getCurrentDay >>= watchDate) |       -- run this small task asynchronously: | ||||||
|       $ \_ -> |       (getCurrentDay >>= watchDate)  | ||||||
| 
 |       -- until this main task terminates: | ||||||
|  |       $ \_async -> | ||||||
|       -- start one or more background threads reporting changes in the directories of our files |       -- start one or more background threads reporting changes in the directories of our files | ||||||
|       -- XXX many quick successive saves causes the problems listed in BUGS |       -- XXX many quick successive saves causes the problems listed in BUGS | ||||||
|       -- with Debounce increased to 1s it easily gets stuck on an error or blank screen |       -- with Debounce increased to 1s it easily gets stuck on an error or blank screen | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user