-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
如题 IdleTask 不支持 delay,并且没有任何提示和报错。
public void triggerIdleRun() {
// removed from taskContainer
Task request = TaskContainer.getInstance().offerTaskInIdleState(false);
if (request != null) {
if (request instanceof IdleTask) {
//can run more than one task in one trigger
((IdleTask) request).updateIdleOffset(mConfig.getIdleTaskOffset());
}
request.updateDelay(0);//[已经设置过的]
if (Looper.myLooper() == Looper.getMainLooper()) {
executeDirect(request);
} else {
enqueue(request);
}
} else {
// when is idle , notify executor to run junk tasks
mTaskExecutor.trigger();
}
}这里会把 delay 设置为 0。
Metadata
Metadata
Assignees
Labels
No labels