[ CCode ( finish_name = "pk_client_generic_finish" ) ]
[ Version ( since = "0.5.2" ) ]
public async Results refresh_cache_async (bool force, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Refresh the cache, i.e. download new metadata from a remote URL so that package lists are up to date.
This action may take a few minutes and should be done when the session and system are idle.
this |
a valid Client instance |
force |
if we should aggressively drop caches |
cancellable |
a Cancellable or |
progress_callback |
the function to run when the progress changes |
callback_ready |
the function to run on completion |
progress_user_data |
data to pass to |
user_data |
the data to pass to |