execute_background


Description:

public async R execute_background<R> (owned Callback<T,R> func, int priority = DEFAULT, Cancellable? cancellable = null) throws Error

Execute a callback in a background thread which uses a resource

Parameters:

func

the callback to execute

priority

the priority with which to create the resource

cancellable

optional cancellable for aborting the opearation

Returns:

the return value from the callback

See also:

execute, execute_async