pub async fn run_preview<F, T>(work: F) -> Result<T>where F: FnOnce() -> Result<T> + Send + 'static, T: Send + 'static,