Concept Flow - Async middleware wrapper
Request comes in
Async middleware wrapper called
Call async middleware function
Promise resolves or rejects
Success
Call next()
Next middleware or route handler
Response sent or error handled
The async middleware wrapper calls an async function and handles its promise. On success, it calls next() to continue. On error, it passes the error to next(err) for Express error handling.
