index_file_for_process_async


Description:

[ Version ( since = "1.10" ) ]
public async bool index_file_for_process_async (File file, Cancellable? cancellable) throws Error

This function operates exactly the same way as index_file with the exception that if the calling process dies, the indexing is cancelled.

This API is useful for cases where the calling process wants to tie the indexing operation closely to its own lifetime.

When the operation is finished, callback will be called. You can then call index_file_for_process_async.end to get the result of the operation.

Parameters:

this

a MinerManager

file

a URL valid in GIO of a file to give to the miner for processing

cancellable

a Cancellable, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to the callback function




2022 vala-language.org