コード例 #1
0
 // Most of the tests in this file were written when task event
 // notification was done synchronously in TaskRunner.  Reproduce that
 // behavior here for simplicity.
 void notify(SchedulableTask task, Schedule.EventType eventType) {
   if (doImmediateNotify) {
     task.callback.taskEvent(task, eventType);
   } else {
     super.notify(task, eventType);
   }
 }
コード例 #2
0
 void removeTask(StepTask task) {
   removedTasks.add(task);
   super.removeTask(task);
 }
コード例 #3
0
 void removeChunk(Schedule.Chunk chunk) {
   removedChunks.add(chunk);
   super.removeChunk(chunk);
 }