Open
Description
Description
We need to add asynchronous support to the Nylas client to improve performance in high-concurrency applications. The current synchronous implementation blocks the event loop during HTTP requests, which limits scalability in async applications.
Benefits
- Improved performance for concurrent operations
- Compatibility with async web frameworks (FastAPI, Starlette, etc.)
- Better resource utilization when processing multiple emails
- Reduced latency for user-facing applications that process email data
Implementation Suggestion
Extend the current HttpClient with an async version that uses aiohttp while maintaining the same interface.