Task: Implement Thread-Safe Asyncio Task Management
Task: Implement Thread-Safe Asyncio Task Management: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a Python class that runs an asyncio event loop in a separate thread and provides thread-safe methods to create and cancel tasks from other threads.
Part of PrimeIntellect/Terminal-Lego-15k.