Example of recvchannel.wait_async()

I am using PYNQ 2.4 and I would like to see an example on using recvchannel.wait_async()

This is what I currently have
async def read_mem():

try:
    async with AIOFile("test.bin", 'wb') as afp:
        writer = Writer(afp)
        with xlnk.cma_array(shape=(SIZE,), dtype=np.uint32) as buffer:
            while True:
                dma_recv.recvchannel.transfer(buffer)
                await dma_recv.recvchannel.wait_async()
                await writer(buffer.tobytes())
                await afp.fsync()
                # buffer.invalidate()  # no need for this