async fn ui_sync( pipeline: AsyncPipeline, tx_sync: Sender<UIAction>, target: FileID, ) -> Result<(), Box<dyn Error + Send + Sync>>
Keeps the UI in sync with its context