Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 com.github.yigit:android-priority-jobqueue。我被困在如何在完成 x 秒后或在 onRun() 调用中安排相同的作业。有什么方法吗?
只需添加 delayInMs() 方法,同时在构造函数中创建。
super(new Params (PRIORITY).requireNetwork ().groupBy (Const.POOLING_QUEUE_GROUP).delayInMs (120000).persist ());//120 sec delay