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

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #402 · 22 дек.

Отдельно разберём TaskGroup, который пришел на замену gather в Python 3.11. Ключевые отличия ▫️create_task() возвращает объект asyncio.Task, у которого есть соответствюущие методы управления. То есть у нас больше контроля ▫️это контекстный менеджер, который гарантирует что все таски будут остановлены по выходу из контекста ▫️ошибка автоматически отменяет незавершенные задачи, ▫️except* передает нам ExceptionGroup, в котором каждую ошибку можно обработать отдельно import asyncio import random async def do_it() -> str: if random.random() < 0.1: raise ValueError('Oops') delay = random.uniform(0.5, 1.5) await asyncio.sleep(delay) return delay async def main(): try: async with asyncio.TaskGroup() as tg: for _ in range(10): tasks.append(tg.create_task(do_it())) for t in tasks: print(t.result()) except *ValueError as e: for err in e.exceptions: print(err) asyncio.run(main()) Рекомендую изучить страницу Coroutines and Tasks из документации, где представлено больше интересных примеров и механизмов - таймауты - отмена задач - создание задач из другого потока #async

Hashtags

Резултати

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

Пребарај: #cleanspark

当前筛选 #cleanspark清除筛选
NEWS 鏈新聞-ABMedia

@abmedia_news · Post #24538 · 12.05.2026 г., 08:30

【🚀 傳統金融|BTC 礦企季報:MARA 營收 -18%、CleanSpark 虧 2.24 億】 #CleanSpark#Mara#比特幣挖礦 MARA 與 CleanSpark 於 5 月 11 日公布財報,指出幣價跌勢導致營收下滑並認列大額虧損。 MARA Q1 營收減 18% 並賣出逾兩萬顆 BTC 減債;CleanSpark 則持倉認列 2.24 億美元虧損。兩家去槓桿與擴張策略的不同—反映出礦企在減半週期下的兩條生存路徑。 📍閱讀全文: https://abmedia.io/mara-cleanspark-q1-q2-earnings-btc-mining-may-2026 📍 訂閱鏈新聞頻道:https://linktr.ee/abmedia.io

Venture Village Wall 🦄

@venturevillagewall · Post #4099 · 08.02.2025 г., 13:00

Cleanspark Hits Record Revenue, Expands BTC Reserves 📈 Bitcoin mining company Cleanspark reports record Q4 2024 revenue of $162.3 million, up 120% YoY. It now holds 10,500 BTC valued at $929 million, primarily self-mined at $34,000 per BTC. CEO announces ambitions to grow hash power to 50 EH/s by 2025. After closing a $650 million convertible bond, the firm solidifies its position in the U.S. mining space. 💔 On-chain Bitcoin activity dips to an annual low, with transactions currently around 349,000 per day, down 53% from September's ATH of ~734,000. Experts note significant outflow of Bitcoin from exchanges, indicating accumulation trends among major players. 🔗 Details: Cleanspark Revenue • Market Analysis #Cleanspark#Bitcoin#Mining#BTC#Crypto#Finance#USDC#Revenue#Market#Blockchain#DigitalAssets#Investing#Tech#AI#VC#Treasury#Economy#Growth#Analytics#CryptoQuant

Venture Village Wall 🦄

@venturevillagewall · Post #3757 · 31.12.2024 г., 04:00

2025 Crypto Outlook Highlights Regulatory Impact Franklin Templeton forecasts a favorable regulatory environment led by US regulators like the SEC, supporting more crypto ETFs and tokenized securities. This trend is expected to reposition the US as a global hub for cryptocurrency innovation. Additionally, in noteworthy transactions: 58 million #XLM was transferred between unknown wallets, and CleanSpark withdrew 3,158 Bitcoins from Coinbase, totaling $293.39M. Former CFTC Chairman Chris Giancarlo praised Bitcoin as 'digital gold'. Read more hereTransaction detailsCleanSpark details #Crypto#US#ETFs#Regulation#Bitcoin#DigitalGold#Innovation#Blockchain#CFTC#XLM#WhaleAlert#CleanSpark#Mining#TokenizedSecurities#Finance#Investment#MarketTrends#2025Outlook#DigitalAssets#CryptoNews

Venture Village Wall 🦄

@venturevillagewall · Post #3837 · 10.01.2025 г., 10:00

Alternatives vs. Altcoin Market Perspectives 🔍 CEO of CryptoQuant, Ki Yun Joo, labels the altcoin market as a 'zero-sum game' due to stagnant capital influx. He suggests only projects with robust use cases can survive. 🚀 Citi analysts forecast a potential alt season with Trump's return, benefiting Ethereum through ETF capital rotation. 📊 Nansen integrates TON blockchain data, offering real-time metrics for the Web3 ecosystem. 💰 CleanSpark becomes the fourth public miner with over 10,000 BTC, reaching this milestone by mining directly. 📈 Ripple aims to list its new RLUSD stablecoin on major exchanges, including ongoing talks with Coinbase and Binance. Bitstamp recently announced support for RLUSD. #Altcoins#Crypto#Ethereum#ETFs#TON#Web3#CleanSpark#Bitcoin#Ripple#RLUSD#Citi#CryptoQuant#Nansen#Blockchain#Mining#Exchange#Bitstamp#CapitalRotation#AltSeason#DonaldTrump#DataAnalytics