async def take(self, tube, timeout=None):
        """
        Get a task from queue for execution.

        Waits `timeout` seconds until a READY task appears in the queue.
        If `timeout` is `None` - waits forever.

        Returns tarantool tuple object.
        """
        cmd = tube.cmd("take")
        args = ()

        if timeout is not None:
            args += (timeout,)

        res = await self.tnt.call(cmd, args)
        return res
async def take ( self , tube , timeout = None ) : cmd = tube . cmd ( "take" ) args = ( ) if timeout is not None : args += ( timeout , ) res = await self . tnt . call ( cmd , args ) return res
Get a task from queue for execution.

        Waits `timeout` seconds until a READY task appears in the queue.
        If `timeout` is `None` - waits forever.

        Returns tarantool tuple object.