UserTask constructor

UserTask(
  1. 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);
}