save_async


Description:

[ Version ( since = "3.14" ) ]
public async bool save_async (int io_priority, Cancellable? cancellable, owned FileProgressCallback? progress_callback) throws Error

Saves asynchronously the buffer into the file.

See the AsyncResult documentation to know how to use this function.

Parameters:

this

a SourceFileSaver.

io_priority

the I/O priority of the request. E.g. LOW, DEFAULT or HIGH.

cancellable

optional Cancellable object, null to ignore.

progress_callback

function to call back with progress information, or null if progress information is not needed.

callback

a TaskReadyCallback to call when the request is satisfied.

progress_callback_data

user data to pass to progress_callback.

progress_callback_notify

function to call on progress_callback_data when the progress_callback is no longer needed, or null .

user_data

user data to pass to callback.




2022 vala-language.org