Add a comment discouraging use of dedicated threads.

This commit is contained in:
akwizgran
2020-08-13 16:23:44 +01:00
parent 9603ff93e9
commit 6094014487

View File

@@ -30,6 +30,9 @@ public interface AndroidWakeLockManager {
* lock is acquired before starting the thread and released when the task
* completes, or if an exception is thrown while starting the thread or
* running the task.
* <p>
* This method should only be used for lifecycle management tasks that
* can't be run on an executor.
*/
void executeWakefully(Runnable r, String tag);
}