FileSaver.saveAsync

void saveAsync(int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.FileProgressCallback progressCallback = null, gio.types.AsyncReadyCallback callback = null)

Saves asynchronously the buffer into the file. See the #GAsyncResult documentation to know how to use this function.

Parameters

ioPrioritythe I/O priority of the request. E.g. [glib.types.PRIORITY_LOW], [glib.types.PRIORITY_DEFAULT] or [glib.types.PRIORITY_HIGH].
cancellableoptional #GCancellable object, null to ignore.
progressCallbackfunction to call back with progress information, or null if progress information is not needed.
callbacka #GAsyncReadyCallback to call when the request is satisfied.