index_file_for_process


Description:

[ Version ( since = "1.10" ) ]
public bool index_file_for_process (File file, Cancellable? cancellable = null) 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.

On failure throws will be set.

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

Returns:

true on success, otherwise false.




2022 vala-language.org