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 g_io_error_cancelled will be returned in close_async.end.

Parameters:

this

a FileEnumerator.

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, null to ignore.

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function