buffer method
void
buffer(
- AppTaskExecutor<
AppTask> executor, - TaskControl taskControl, {
- DateTime? triggerTime,
- 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(),
));
}