buffer method

void buffer(
  1. AppTaskExecutor<AppTask> executor,
  2. TaskControl taskControl, {
  3. DateTime? triggerTime,
  4. bool sendNotification = true,
})

Buffer the executor originating from taskControl for later scheduling. The buffered task executors is enqueued by calling enqueueBufferedTasks.

Implementation

void buffer(
  AppTaskExecutor executor,
  TaskControl taskControl, {
  DateTime? triggerTime,
  bool sendNotification = true,
}) {
  _userTaskBuffer.add(UserTaskBufferItem(
    taskControl,
    executor,
    sendNotification,
    triggerTime ?? DateTime.now(),
  ));
}