Efficiently Handle Large task with Ease: A Guide to Async Generator Functions for Batch Processing