TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 17 слични објави

Пребарај: #cryptowallet

当前筛选 #cryptowallet清除筛选
TokenPocket

@tokenpocket_channel · Post #1566 · 06.03.2025 г., 03:44

🔖 TokenPocket Monthly Report — February 2025 🔗 Read Full Report: https://tokenpocket-gm.medium.com/tokenpocket-monthly-report-february-2025-89f2dfa00949 February has been an exciting month filled with innovations and feature upgrades! 🚀 Let’s take a look at the key highlights: Key Updates & Features 🎯 four_meme_ Pre-Launch Market Supported 🎯 MultiSig Wallet Now Supports base Chain 🎯 Expanded Meme Mode to BNB CHAIN & Base 🎯 Gas-Free Transfers on TRON & BNB Chain ✍️ We Value Your Feedback! Participate in our survey and get a chance to win exclusive rewards! 👉 Take the Survey: https://docs.google.com/forms/d/e/1FAIpQLScOoLg_AZIRQtX4lBo7aFwrvVmriXC5Kg_SqRvz0Hwl_ner5A/viewform All-in-one, all in TokenPocket! 👇 👉https://tokenpocket.pro #TokenPocket#CryptoWallet#Web3#DeFi#Blockchain

Quasark.io - Announcement

@quasark_channel · Post #6 · 30.06.2023 г., 12:53

🚀 Last Call for the QuasarK Closed Beta Whitelist Are you ready to experience the future of cryptocurrency wallets? The countdown is on ⏰, and we don't want you to miss out on this exciting opportunity! Here's why you want to be part of our closed beta: 1️⃣ Unrivaled Security: Quasark ensures the safety of your funds like never before. Rest easy, knowing your assets are protected. 2️⃣ User-Friendly Interface: Effortlessly navigate through features, send and receive funds, and stay in control of your financial future. 3️⃣ Cutting-Edge Features: From instant swaps to customizable interface, we've got you covered with a suite of powerful tools. 4️⃣ Prices&Market trends: Access insightful charts and information to make informed investment decisions. 👉 Don't wait any longer! Secure your spot before SUNDAY: https://zealy.io/c/quazark/invite/yJwJUITfB-ehsbeVWcaOP #Quasark#CryptoWallet#ClosedBeta#DigitalAssets#DeFi

MyTonWallet v4.0 — July Update Overview ⚡️Instant Transfer Display Incoming transfers now appear on the recipient’s side immediately after the sender confirms the transaction. While this doesn’t speed up the blockchain itself, it sets a new UX standard — you see the transfer right away, even before it hits the block. #MyTonWallet is the first wallet to achieve this level of speed in displaying transactions. 💡 Combined with recent TON Core updates — where transactions confirm in ~5 seconds under average network load — using TON is now smoother than ever. 👍Refreshed Interface The wallet UI got a fresh polish: updated main card, tabs, balance display, and token color scheme — all now cleaner and more modern. The design comes from the new native app, MyTonWallet Air, which is currently in testing. 💱Send and Stake in Fiat You can now enter amounts in familiar fiat currencies like USD, EUR, RUB, and more — great for beginners or anyone dealing with fiat. 👨‍💻Better dApp Support + TON Connect Improved experience when working with decentralized apps via TON Connect. Plus, new features for devs and power users: 🔵 Import wallets of any version 🔵 Create wallets that work exclusively on TON #MyTonWallet#CryptoWallet#TON#UX#Web3#TONConnect#CryptoNews

DigitalGenie Trading News

@digitalgentop · Post #241 · 06.06.2024 г., 08:02

⚡️Main news: 🔗Wallet on Telegram enforces new KYC rules, switches provider 🟢 PEPE whale up nearly $5M on investment within a month 💵Next $1 trillion company will be DePIN 📌 Alex Labs rolls out post-exploit recovery plan 💰Bitcoin in 42-day ‘boredom zone’ — traders debate next move #Cryptoanalysis #Cryptoenthusiast #Cryptocurrencies #Cryptowallet

DigitalGenie Trading News

@digitalgentop · Post #224 · 02.06.2024 г., 16:01

☄️ZKasino gives investors 72-hour window to get back deposited ETH 💵ZKasino denied it tried to make off with $33 million of investor funds in April and has now opened up a short refund window. #Cryptoanalysis #Cryptoenthusiast #Cryptocurrencies #Cryptowallet

💫 Magic Eden expands the NFT universe with Emmy, a multi-chain crypto wallet. Embrace the magic with compatibility for Solana, Bitcoin, Polygon, and Ethereum! What's your blockchain pick? #MagicEden#CryptoWallet#NFTs#Solana#Bitcoin#Polygon#Ethereum 📈BTC price at the time of this post: $43024 👉Continue reading

12
ПретходнаСтраница 1 од 2Следна