close_async


Description:

public virtual async bool close_async (int io_priority = DEFAULT, Cancellable? cancellable = null) throws Error

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 [error@Gio.IOErrorEnum.CANCELLED] will be returned by [method@Gio.FileEnumerator.close_finish()] .

Parameters:

this

a file enumerator

io_priority

the [I/O priority](iface.AsyncResult.html#io-priority) of the request

cancellable

optional cancellable object

callback

a callback to call when the request is satisfied

user_data

the data to pass to callback