next_files_async


Description:

public virtual async List<FileInfo> next_files_async (int num_files, int io_priority = DEFAULT, Cancellable? cancellable = null) throws Error

Request information for a number of files from the enumerator asynchronously.

When all i/o for the operation is finished the callback will be called with the requested information.

See the documentation of FileEnumerator for information about the order of returned files.

The callback can be called with less than num_files files in case of error or at the end of the enumerator. In case of a partial error the callback will be called with any succeeding items and no error, and on the next request the error will be reported. If a request is cancelled the callback will be called with g_io_error_cancelled.

During an async request no other sync and async calls are allowed, and will result in g_io_error_pending errors.

Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is g_priority_default.

Parameters:

this

a FileEnumerator.

num_files

the number of file info objects to request

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




2022 vala-language.org