Class DynamicTaskUtils

  • public class DynamicTaskUtils
    extends java.lang.Object
    Helper class to easily execute or cancel an AsyncTask by handling all the exceptions.
    • Constructor Detail

      • DynamicTaskUtils

        public DynamicTaskUtils()
    • Method Detail

      • cancelTask

        public static void cancelTask​(@Nullable
                                      DynamicTask<?,​?,​?> task,
                                      boolean mayInterruptIfRunning)
        Try to cancel the supplied dynamic task.
        task - The dynamic task to be cancelled.
        mayInterruptIfRunning - true if the thread executing the task should be interrupted; otherwise, in-progress tasks are allowed to complete.
        See Also: