Code assistant
Describe a change and review the generated diff before applying.
Prompt
Refactor this function to use async/await with proper error handling and type safety.
Generate diff
The generated diff will appear here