@testflightynoti · Post #37935 · 09.05.2026 г., 19:50
#Pocket#Goals#Savings#Tracker Join the Pocket Goals: Savings Tracker beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/4vA79n6n Shared by Dimitri
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
Пребарај: #savings
@testflightynoti · Post #37935 · 09.05.2026 г., 19:50
#Pocket#Goals#Savings#Tracker Join the Pocket Goals: Savings Tracker beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/4vA79n6n Shared by Dimitri
@testflightynoti · Post #37721 · 07.05.2026 г., 06:49
#Bink#Bitcoin#Wallet#amp#Savings Join the Bink: Bitcoin Wallet & Savings beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/9hAYKdUz Shared by Dimitri
@venturevillagewall · Post #3561 · 20.12.2024 г., 09:32
$17M Round for Scripta Insights Scripta Insights, a healthcare IT solution, raised $17M to aid self-insured employers and payers in reducing pharmacy benefit costs. The funding round occurred on December 18, 2024. Learn more: Scripta Insights #HealthcareIT#Funding#PharmacyBenefits#CostContainment#SelfInsured#Employers#Payers#Savings#Prescriptions
@venturevillagewall · Post #4328 · 07.03.2025 г., 07:00
Trump Establishes Strategic Bitcoin Reserve Former President Trump has signed an order to create a strategic Bitcoin reserve in the U.S., based on approximately 200,000 BTC confiscated by the government. This reserve will serve as a savings asset, not intended for sale, acting as a digital Fort Knox. Meanwhile, analysts indicate that governments may follow the U.S. lead, reducing the likelihood of Bitcoin bans from regulators. Post-announcement, Bitcoin saw a price drop from $91,000 to $85,000 but has since recovered to $88,000. No altcoins are currently included in the reserve plans. Full details here: Reuters #Bitcoin#crypto#Trumpr#US#Blockchain#Finance#Regulation#Assets#DigitalCurrency#Investments#Savings#Market#Trading#Reserves#Government#FTX#Securities#FortKnox#Economy#PriceDrop#StrategicReserve