* Created a task decorator and massively decorated methods to avoid has_pending_work from returning False
* Made the _tasks_in_progress_counter thread safe