pub async fn sync_to_async_with_diagnostics<F, T>( func: F, ) -> Result<T, AsyncSyncError>where F: Fn() -> T + Send + 'static, T: Send + 'static,