A thread manager for async