ScheduledExecutorService
ScheduledExecutorService 是在主线程还是后台线程上运行,我经历了 documentation here 但没有找到。
任何帮助将不胜感激。
最佳答案
ScheduledExecutorService
使用后台线程,这些线程来自您从 the Executors
set of factory methods 创建实例时隐式或显式指定的线程池。 .
请注意,ScheduledExecutorService
是一个标准 Java 类 (java.util.concurrent.ScheduledExecutorService
)。主应用程序线程来自 Android 框架。
关于java - Android ScheduledExecutorService,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33871420/