execute_background
Description:
public virtual async G execute_background<G> (owned Callback<G> func, int priority = DEFAULT, Cancellable? cancellable = null) throws Error
Execute a callback in a background thread
Although the supplied callback will be executed in a background thread, the async function call will be finished in an idle callback for the thread-default main context.
Parameters:
func |
the callback to execute |
priority |
the priority |
cancellable |
optional cancellable for aborting the operation |