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

Резултати

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

Пребарај: #bitcointrust

当前筛选 #bitcointrust清除筛选
Crypto M - Crypto News

@CryptoM · Post #64886 · 10.04.2026 г., 07:04

🚀 BlackRock's Bitcoin Trust Sees Significant Inflows Amid Market Dynamics Investors directed $269.3 million into BlackRock’s iShares Bitcoin Trust on Thursday, marking its most successful day since early March, coinciding with the escalation of the US-Iran conflict. According to Cointelegraph, this influx helped reverse two days of net outflows among the 12 U.S. spot Bitcoin ETFs, culminating in a net inflow of $358.1 million. Bitcoin ETF inflows serve as a measure of both retail and institutional interest in Bitcoin. The Fidelity Wise Origin Bitcoin Fund (FBTC) followed with $53.3 million in inflows, while the newly launched Morgan Stanley Bitcoin Trust (MSBT) contributed $14.9 million on its second trading day, as reported by Farside Investors. Bitwise and ARK 21Shares' Bitcoin ETFs saw inflows of $11.7 million and $4.8 million, respectively, while Franklin Templeton and VanEck’s Bitcoin products recorded around $2 million. Since March 23, BlackRock’s IBIT has accumulated $1.5 billion in net inflows, despite a broader crypto market downturn that saw Bitcoin's price drop from a 2026 high of $97,000 to $72,100. Robert Mitchnick, BlackRock’s digital assets head, remarked in March that IBIT investors tend to be "disproportionately long-term buy and hold" investors, even amid significant selling pressure in the Bitcoin market. Meanwhile, Amy Oldenburg, Morgan Stanley’s digital asset head, highlighted in a Bloomberg interview that MSBT was the bank’s most successful ETF launch to date. She noted, "This is just the first of a long roadmap of new products on the asset management side." Morgan Stanley has also filed to list a staked Ether (ETH) ETF and Solana (SOL) ETF. With the recent inflows, U.S. spot Bitcoin ETFs are nearing a year-to-date net inflow. The Bitcoin ETFs concluded 2025 with $56.59 billion in net inflows and currently stand at $56.51 billion, just $80 million shy of returning to their initial inflow figures for the year. #BlackRock#BitcoinTrust#BitcoinETF#MarketInflows#Fidelity#MorganStanley#Cryptocurrency#Bitcoin#ETFs#Investment#DigitalAssets#USIranConflict#CryptoMarket#BTC#ETH#SOL