def attr_elements(self): if not self._attr_elements: if self.parallel is True: # TODO: move the fallback inside the function to apply per-attribute, like with non-async version. self._attr_elements = fallback_on_timeout()(self.__get_attr_elements_async)(50000)[0] else: self._attr_elements = self.__get_attr_elements() self.__filter.attr_elem_selected = self._attr_elements return self._attr_elements
def attr_elements(self) -> list: if not self.__definition_retrieved: self._get_definition() if not self._attr_elements and self._id: if self._parallel is True: # TODO: move the fallback inside the function to apply # per-attribute, like with non-async version. self._attr_elements = fallback_on_timeout()( self.__get_attr_elements_async)(50000)[0] else: self._attr_elements = self.__get_attr_elements() self._filter._populate_attr_elements(self._attr_elements) return self._attr_elements