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

Резултати

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

Пребарај: #ibit

当前筛选 #ibit清除筛选
Ramadan Crypton

@RamadanCrypton · Post #2673 · 13.01.2025 г., 10:41

Золотым ETF от BlackRock потребовалось 20 лет, чтобы достичь $33 млрд AUM а его BTC-ETF (#IBIT) потребовалось меньше года, чтобы достичь и почти в 2 раза превысить эту отметку ❗️BTC-ETF - cамые быстрорастущие ETF в истории.

Hashtags

Crypto Headlines

@market_headlines · Post #27690 · 13.03.2026 г., 08:12

💎Перелив капитала из Золота в BTC? JPMorgan: C начала войны на Ближнем Востоке – в крупнейшем спотовом ETF на Золото (#GLD) зафиксирован отток капитала в размере около 2,7%, в то время как в крупнейшем спотовом ETF на Биткоин (#IBIT) наблюдается приток в размере 1,5%. Crypto Headlines

Hashtags

PROROCK

@ProRock_Crypto · Post #1689 · 23.03.2024 г., 10:04

BlackRock выкупил все BTC, проданные Grayscale с момента запуска BTC-ETF Приток BlackRock (#IBIT) = +$13,1 млрд Отток Grayscale (#GBTC) = -$13,3 млрд Теперь BlackRock владеет более чем 1% от 21 млн BTC

Hashtags

SIGNAL

@finsignal · Post #3447 · 05.08.2024 г., 19:38

⚡️ .The American stock market lost almost 2 trillion dollars just 15 minutes after the opening of trading There is a major collapse in all global stock markets, what happened: • It all started with Japan: the Nikkei 225 stock index (a key indicator that includes shares of 225 of Japan's largest companies) collapsed by 12.4%, setting a record since 1987 — all due to the deterioration of economic data in the United States, which made investors fear a recession in the country's economy • The Istanbul Stock Exchange announced the termination of trading after the decline of the main Borsa Istanbul 100 index (BIST 100) by 6.72% • South Korea's Kospi index is down 8.1%, China's Shanghai Composite index is down 0.9%, Hong Kong's Hang Seng is losing 1.8%, and Australia's S&P/ASX 200 is down 3.5% • The Bitcoin exchange rate drops below $50,000, losing almost 20% of its value in 2 days • The Ether rate sank even more — a decrease of more than 20% per day • The American stock market loses 1,900,000,000,000 dollars after the opening of trading The trading volume of spot #BTC-#ETF#BlackRock#IBIT in the first hour amounted to $1.45 billion.

Venture Village Wall 🦄

@venturevillagewall · Post #4271 · 28.02.2025 г., 19:00

BlackRock Introduces Bitcoin ETF to Portfolios BlackRock includes Bitcoin in its $150B model portfolios, committing 1-2% to the iShares Bitcoin Trust ETF (IBIT). This strategic allocation opens new demand for financial advisors. Despite recent market fluctuations, this could signal increased institutional interest in Bitcoin. 🔗Read more here #Bitcoin#BlackRock#ETF#IBIT#Finance#Investing#MarketTrends#AI#Crypto#VC #Bitcoin#BlackRock#ETF#IBIT#Finance#Investing#MarketTrends#AI#Crypto#VC

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