[Task] (minor) Add override to Task::Invoke().