Class DynamicTaskUtils
java.lang.Object
com.pranavpandey.android.dynamic.util.DynamicTaskUtils
Helper class to easily execute or cancel an
AsyncTask
by handling all the exceptions.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
cancelTask
(AsyncTask<?, ?, ?> task) Deprecated.static void
cancelTask
(DynamicTask<?, ?, ?> task, boolean mayInterruptIfRunning) Try to cancel the supplied dynamic task.static void
executeTask
(AsyncTask<Object, ?, ?> task) Deprecated.UseexecuteTask(DynamicTask)
or standardjava.util.concurrent
APIs.static void
executeTask
(DynamicTask<?, ?, ?> task) Try to execute the supplied dynamic task.
-
Constructor Details
-
DynamicTaskUtils
public DynamicTaskUtils()
-
-
Method Details
-
executeTask
Deprecated.UseexecuteTask(DynamicTask)
or standardjava.util.concurrent
APIs.Try to execute the supplied async task.- Parameters:
task
- The async task to be executed.- See Also:
-
cancelTask
Deprecated.UsecancelTask(DynamicTask, boolean)
or standardjava.util.concurrent
APIs.Try to cancel the supplied async task.- Parameters:
task
- The async task to be cancelled.- See Also:
-
cancelTask(DynamicTask, boolean)
or standardjava.util.concurrent
APIs.