Adds a thread based task dispatcher.