при прокрутки списка я смотрю считываю offset ...
_onViewableItemsChanged = ({ viewableItems, changed }) => {
console.log('Visible items are', viewableItems);
console.log('Changed in this iteration', changed);
};
<FlatList
onViewableItemsChanged={this._onViewableItemsChanged}
User-agent: *
Disallow: /
<meta name="robots" content="noindex">
systemctl restart vash_script
logging.error('ONE', e)
logging.error('TWO', e)
logging.error('THREE', e)
2019-05-05 00:55:06,570:DEBUG:HTTPSConnectionPool(host='lp.vk.com', port=443): Read timed out. (read timeout=35)
Скрипт не прекращает свою работу, systemd его не перезапускает
while True:
try:
for event in self.check():
yield event
except Exception as e:
logging.error(e)
except Exception as e:
logging.error(e)
sleep(60) # Спим минутку
some_restart_function()
try:
# Код
except Exception as e:
logging.debug(e)
Какая красотища, да еще и в одну строчку.