run_in_thread


Description:

public void run_in_thread (SimpleAsyncThreadFunc func, int io_priority = DEFAULT, Cancellable? cancellable = null)

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.

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.