run_in_thread


Description:

[ Version ( deprecated = true , deprecated_since = "2.46" ) ]
public void run_in_thread (SimpleAsyncThreadFunc func, int io_priority = DEFAULT, Cancellable? cancellable = null)

Warning: run_in_thread is deprecated since 2.46.

Runs the asynchronous job in a separate thread and then calls complete_in_idle on this to return the result to the appropriate main loop.

Note:

Use Task and run_in_thread instead.

Calling this function takes a reference to this for as long as is needed to run the job and report its completion.

Parameters:

this

a SimpleAsyncResult.

func

a SimpleAsyncThreadFunc.

io_priority

the io priority of the request.

cancellable

optional Cancellable object, null to ignore.




2022 vala-language.org