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

TGINSIGHT SIMILAR POSTS

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

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

Три способа выполнить множество задач с asyncio Функция для примера: async def do_it(n): await asyncio.sleep(random.uniform(0.5, 1)) return n 1. Последовательный вызов async def main(): for i in range(100): result = await do_it(i) Такой вызов имеет смысл только тогда, когда результат одной задачи требуется для вызова следующей. Если они независимы, то это антипаттерн, так как аналогичен простому синхронному вызову по очереди. 2. Упорядоченный результат async def main(): tasks = [do_it(i) for i in range(100)] results = await asyncio.gather(*tasks) Выполняет корутины конкурентно и возвращает результат в виде списка. Полезен когда требуется получить результаты в том же порядке в котором задачи отправлены. 3. Результат по мере готовности tasks = [asyncio.create_task(do_it(i)) for i in range(100)] for cor in asyncio.as_completed(tasks): result = await cor Так же выполняет корутины конкурентно, но не гарантирует порядок. Результат возвращается по мере готовности, каждый отдельно. Полезен когда нужно обработать любой ответ как можно скорее. #async

Hashtags

Резултати

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

Пребарај: #preferredshares

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

@CryptoM · Post #65059 · 10.04.2026 г., 17:08

🚀 Stablecoin-Like Tokens Backed by Strategy's Shares Surpass $100 Million Since January, at least three issuers have introduced stablecoin-like tokens primarily backed by Strategy's Stretch perpetual preferred shares, collectively managing over $100 million. According to NS3.AI, these products expand Michael Saylor's borrow-to-buy-Bitcoin strategy into an additional layer of leverage, which remains vulnerable if Bitcoin's value declines. #stablecoin#tokens#Strategy#Stretch#preferredshares#MichaelSaylor#borrowtobuy#Bitcoin#leverage#NS3AI#BTC

Venture Village Wall 🦄

@venturevillagewall · Post #3790 · 04.01.2025 г., 16:00

MicroStrategy Plans $2 Billion Bitcoin Fundraising 🎄MicroStrategy seeks to raise $2 billion by issuing perpetual preferred shares for Bitcoin purchases. This decision is expected to be finalized in Q1 2025. Experts predict the completion of MicroStrategy's 21/21 plan by 2027. 🔥 In related news, analysts from Bitfinex forecast Bitcoin trading between $95,000 and $110,000 by the end of January, stimulated by the upcoming inauguration of President Donald Trump on January 20, which may provide regulatory clarity for digital assets in the U.S., though the price impact may be gradual. CryptoQuant's Axel Adler notes that Bitcoin needs higher trading volumes to achieve six-figure prices again, anticipated post-holiday season. #Bitcoin#Crypto#VC#MicroStrategy#Bitfinex#DonaldTrump#Regulation#Trading#MarketAnalysis#Investing#CryptoMarket#CryptoQuant#PriceForecast#FinancialNews#InvestmentStrategy#DigitalAssets#PreferredShares