async def acquire_async ( self ) : r = self . acquire ( blocking = False ) while not r : await asyncio . sleep ( .01 ) r = self . acquire ( blocking = False )
asyncio python lock queue
Acquire the : attr : lock asynchronously
async def acquire_async(self):
        """Acquire the :attr:`lock` asynchronously

        """
        r = self.acquire(blocking=False)
        while not r:
            await asyncio.sleep(.01)
            r = self.acquire(blocking=False)