UserTask constructor
UserTask(
- AppTaskExecutor<
AppTask> executor
Creates a user task wrapping executor, with a new id.
Implementation
UserTask(AppTaskExecutor executor) {
_executor = executor;
id = const Uuid().v4();
// add the events from the background executor to the overall stream of events
_executor.addExecutor(backgroundTaskExecutor);
}