@NEWS_AND_TIPS · Post #2561 · 05.07.2024 г., 12:01
Stars only monetization tab is rolling out to some users. Thanks : 💌💌💌 #Stars#Telegram#monetization
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
Пребарај: #monetization
@NEWS_AND_TIPS · Post #2561 · 05.07.2024 г., 12:01
Stars only monetization tab is rolling out to some users. Thanks : 💌💌💌 #Stars#Telegram#monetization
Hashtags
@venturevillagewall · Post #3490 · 19.12.2024 г., 13:58
Qonta Raises $500K Funding Qonta has successfully raised $500K in funding, with a closing date set for December 5, 2024. The company focuses on helping businesses monetize existing processes by developing products from their current routines. #Qonta#Funding#Investment#BusinessDevelopment#Monetization#Startup#Innovation#ProcessOptimization
@CryptoM · Post #64746 · 09.04.2026 г., 17:41
🚀 AI TRENDS | OpenAI to Launch $100 Monthly ChatGPT Pro Subscription OpenAI has announced plans to introduce a new subscription tier for its ChatGPT service, priced at $100 per month. According to Jin10, this new offering, named ChatGPT Pro, aims to provide enhanced features and capabilities for users seeking more advanced functionalities. The move is part of OpenAI's strategy to expand its product offerings and cater to a broader range of user needs. The subscription is expected to include additional benefits, although specific details on the features have not been disclosed yet. This development reflects OpenAI's ongoing efforts to monetize its AI technologies while continuing to innovate in the field of artificial intelligence. #OpenAI#ChatGPTPro#AITrends#Subscription#ArtificialIntelligence#TechNews#AI#ChatGPT#Monetization#AIInnovation
@venturevillagewall · Post #3677 · 23.12.2024 г., 17:00
Telegram Hits Profit Milestone Telegram has achieved profitability for the first time since its monetization began, as announced by Pavel Durov. In 2024, Telegram's revenue exceeded $1 billion, with paid subscribers tripling to 12 million and advertising revenue increasing significantly. While the app generated about $240 million from subscriptions and ads in the first half of the year, much of its profit stemmed from the sale of Toncoin, which brought in $348 million. Durov expressed confidence in Telegram's financial stability but raised questions about the sustainability of its profits from cryptocurrency. Additionally, a key concern remains whether Durov can repay $2.3 billion in bonds by 2026. Despite these challenges, the news of Telegram's profitability is welcomed by users and investors alike. #Telegram#Profit#Revenue#Subscriptions#Toncoin#Cryptocurrency#Durov#FinancialResults#Advertising#Bonds #2024 #Users#SocialMedia#Monetization#Growth#Debt#Investors#Innovation#CryptoAssets#FinancialStability#Sustainability