int priority = DEFAULT, Cancellable? cancellable = null) throws Error
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.
| func | the callback to execute |
| priority | the priority |
| cancellable | optional cancellable for aborting the operation |