HF RL Explorer

Task: Wrap Synchronous Functions in Async Coroutines

Task: Wrap Synchronous Functions in Async Coroutines: a task in Terminal-Lego-15k (Harbor dataset). You are building an async API server using Python's asyncio. Some parts of your codebase contain synchronous blocking functions (like legacy libraries or I/O operations) that block the entire event…

The task

You are building an async API server using Python's asyncio. Some parts of your codebase contain synchronous blocking functions (like legacy libraries or I/O operations) that block the entire event loop when called directly. You need to wrap these synchronous functions so they can be called from async code without…

Part of PrimeIntellect/Terminal-Lego-15k.