UserTask constructor
UserTask(
- AppTaskExecutor<
AppTask> executor
Create a new UserTask based on executor
.
Implementation
UserTask(AppTaskExecutor executor) {
_executor = executor;
id = const Uuid().v1;
// add the events from the background executor to the overall stream of events
_executor.addExecutor(backgroundTaskExecutor);
}