def status(self, timeout=None): """ Get etcd status. :param timeout: Request timeout in seconds. :type timeout: int :returns: The current etcd cluster status. :rtype: instance of :class:`txaioetcd.Status` """ assembler = commons.StatusRequestAssembler(self._url) obj = yield self._post(assembler.url, assembler.data, timeout) status = Status._parse(obj) returnValue(status)
async def status(self, timeout=None): assembler = commons.StatusRequestAssembler(self._url) obj = await self._post(assembler.url, assembler.data, timeout) return Status._parse(obj)