execute_background
Description:
public async R execute_background<R> (Callback<T,R> func, int priority = DEFAULT, Cancellable? cancellable = null) throws Error
Execute the callback asynchronously
This method will wait until the event is triggered, then execute the callback in a thread (from the pool) and return the result asynchronously.
Parameters:
func |
the callback to execute once the event is triggered |
priority |
the priority of the callback |
cancellable |
optional cancellable for aborting |