Gio.FileEnumerator.prototype.close_async
function close_async(io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_file_enumerator_close_async() }
Asynchronously closes the file enumerator.
If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gio.IOErrorEnum.cancelled will be returned in Gio.FileEnumerator.prototype.close_finish.
- io_priority
the [I/O priority][io-priority] of the request
- cancellable
optional Gio.Cancellable object, null to ignore.
- callback
a Gio.AsyncReadyCallback to call when the request is satisfied