Task-based concurrency library