onTask method
Override to intercept tasks before they execute.
Called after all listenOnTask listeners and before Task is executed. The task can be canceled here via Task.cancel.
Implementation
void onTask(Task<T> task) {}
Override to intercept tasks before they execute.
Called after all listenOnTask listeners and before Task is executed. The task can be canceled here via Task.cancel.
void onTask(Task<T> task) {}