fn handle_async_error( backend_type: WgpuBackendType, resolve_callback: impl FnOnce(Option<Error>) + 'static, error_future: impl Future<Output = Option<Error>> + Send + 'static, )