Похожие чаты

Kinda offtopic but relevant to telethon: does anyone here use aiorun? wondering

if there’s a good way to dynamically adjust the shutdown callback sequence.

for example, say i have a dynamic list of telegram clients that get connected, i need to call disconnect on those that are active on SIGTERM / SIGINT.

i could maintain a list of clients and check if they are connected, but that’s not very scalable.
wondering if there’s a better way to do this.

currently i’m thinking of having the shutdown handler invoke a list of coroutines.
that list gets updated dynamically according to what i have active (have a data pipeline w/ many client sessions and etc.)

1 ответов

1 просмотр

Totally, definitely. absolutely. nods motherfuckingly without having any clue

Похожие вопросы

Обсуждают сегодня

читать файл максимально быстро? странный вопрос))
zamtmn
53
Посоветуйте пожалуйста аудио плеер для библиотеки mp3- FLAC на компьютере. На Винде пользовался Aimp, в том числе для конвертации. Много нужных команд было прямо в контекст...
Виктор Кузнецов
31
How Much Btc Falling Down ?
Suriya
22
It is definitely an interesting conversation. Breaking up the users into 2 personas: 1. Someone who wants to use the products (I want “x” pegged stablecoin that provides safe...
Bueno Pues
10
Is someone using mymonero? What can you say about the wallet?
warrenique
16
Привет. Сразу скажу, что на C/C++/Rust я не пишу, но тем не менее возникла потребность дебага C/C++/Rust кода. Суть: есть серверное приложение, которое периодически ведёт себ...
ninekeem 🐳
4
So, does this mean leap 6 is closed source now? https://github.com/AntelopeIO/spring/blob/main/LICENSE
Kameron James | zeos.one
20
А чего сейчас в моде вместо Error для эксепшенов? А то я тут внезапно узрел что он не рекомендуется :) У Try::Tiny какой-то совершенно ужасный синтаксис если надо конкретные э...
Denis F
17
Ajeeb aadmi hai, isko padhna nahi aata kya?
Jay Bansal
43
Guys is any possible go up? Shib
Prem Kumar
21
Карта сайта