Improve documentation for the `TaskScheduler` class.