@BotsChannel · Post #200 · 23.04.2016 г., 18:11
🏆BOT OF THE DAY🏆 HTTP Status Code @httpresponsebot With this Bot you can get the HTTP status code and redirects instantly for any website. #utilities
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #401 · 15 дек.
Функция asyncio.wait() это еще один способ вызвать множество асинхронных задач. Она работает в нескольких режимах. 1. Самый простой - ждем завершения всех задач async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(10)] done, pending = await asyncio.wait( tasks, return_when=asyncio.ALL_COMPLETED ) for task in done: try: print(task.result()) except Exception as e: print(e) Очень похоже на gather, но работает не так. ▫️возвращает не результаты, а два сета с объектами Task у которых можно забрать результат через task.result() если они в списке done ▫️не гарантирует порядок результатов так как оба объекта это set ▫️не выбрасывает исключение когда оно появляется, а сохраняет его в Task. Исключение появится когда попробуете забрать резултьтат. 2. Ждем завершения первой задачи, даже если там ошибка. async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(3)] done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_COMPLETED ) # в done может быть несколько задач! for task in done: try: print(task.result()) except Exception as e: print(f"Fail: {e}") # Оставшиеся задачи в pending, как правило, нужно отменить, иначе они будут продолжать работать for task in pending: task.cancel() В сете done будут таски которые успели завершится, причем как успешно так и нет. 3. До первой ошибки. Тоже самое, но с аргументом FIRST_EXCEPTION done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_EXCEPTION ) Функция завершается как только первая задача упадет с ошибкой. Учтите, что в любом случае done вы можете обранужить несколько задач, как с ошибками так и успешные. ↗️ Полный листинг примеров здесь #async
Hashtags
Пребарај: #utilities
@BotsChannel · Post #200 · 23.04.2016 г., 18:11
🏆BOT OF THE DAY🏆 HTTP Status Code @httpresponsebot With this Bot you can get the HTTP status code and redirects instantly for any website. #utilities
Hashtags
@BotsChannel · Post #198 · 22.04.2016 г., 11:07
🏆BOT OF THE DAY🏆 Stats Bot @getstatsbot Statsbot provides you and your team with analytics insights in the most natural way - just ask him, like your buddy. This data guru monitors your application’s metrics by integrating with Google Analytics. #utilities
Hashtags
@BotsChannel · Post #197 · 21.04.2016 г., 13:36
🏆BOT OF THE DAY🏆 Jack @imandabot Multi purpose bot with lot of plugins (9gag, youtube, google, github, reddit, spotify and more! #utilities
Hashtags
@BotsChannel · Post #185 · 06.04.2016 г., 15:37
🏆BOT OF THE DAY🏆 Yandex @ya First official chat bot from Yandex. @ya is able to answer questions, to search videos and music, report news, translate texts... #Utilities
Hashtags
@BotsChannel · Post #184 · 05.04.2016 г., 15:49
🏆 BOT OF THE DAY 🏆 IT Tool @it_tool_bot ⭐️⭐️⭐️⭐️⭐️ 👥(3) Useful tools for administrators and developers. Domain Checking, popular features of programming languages directly into the chat #Utilities 🚀 suggest your bot to @bots4telegram
Hashtags
@BotsChannel · Post #170 · 07.03.2016 г., 13:51
🏆BOT OF THE DAY🏆 Unit Conversion @unitconversionbot ⭐️⭐️⭐️⭐️ 👥 (1) The bot can convert from one units to another. Just type something like "100 ft to m" and the bot will convert it for you #Utilities ➡️botsfortelegram.com
Hashtags
@BotsChannel · Post #143 · 11.01.2016 г., 19:37
🏆BOT OF THE DAY🏆 My Tele cloud Media Bot @mytelecloudbot ⭐️⭐️⭐️⭐️ 👥 (57) Create your unlimited cloud!, Easily upload files to your private storage for comfortable use... #Utilities
Hashtags
@BotsChannel · Post #142 · 10.01.2016 г., 23:30
🏆BOT OF THE DAY🏆 DAVID TORRENT @davidtorrentbot ⭐️⭐️⭐️⭐️ 👥 (55) Torrent Search Bot. #Utilities
Hashtags
@BotsChannel · Post #141 · 07.01.2016 г., 15:44
🏆BOT OF THE DAY🏆 YOUTUBE DOWNLOADER @ivideobot ⭐️⭐️⭐️⭐️ 👥 (105) Send me YouTube links or video IDs, and I will provide you with a list of all possible downloads. #Utilities
Hashtags
@BotsChannel · Post #138 · 04.01.2016 г., 12:08
🏆QR CODE UTILITIES🏆 QR Reader(scans QR-Code and sends the results) @qrcrbot Qr Creator(Creates a Qr code using the input text) @QrBot #Utilities
Hashtags
@BotsChannel · Post #123 · 17.12.2015 г., 18:30
🏆 BOT OF THE DAY 🏆 Steam Status @steamstatus_bot ⭐️⭐️⭐️⭐️ 👥(6) A Telegram bot that informs you when Steam or any Game Coordinator is down. #Utilities
Hashtags
@BotsChannel · Post #82 · 18.11.2015 г., 17:54
🏆 BOT OF THE DAY 🏆 @androidtricks_bot ⭐️⭐️⭐️⭐️⭐️ 👥(1) Tricks about android! #Utilities
Hashtags