@BinanceAlphaAirdropTracker · Post #419 · 13.11.2025 г., 13:28
⏰#PLANCK Claim with minimum 220 pts starts in about 2 minutes 🎁 Airdrop: 200 $PLANCK ($81)
Hashtags
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
Пребарај: #planck
@BinanceAlphaAirdropTracker · Post #419 · 13.11.2025 г., 13:28
⏰#PLANCK Claim with minimum 220 pts starts in about 2 minutes 🎁 Airdrop: 200 $PLANCK ($81)
Hashtags
@BinanceAlphaAirdropTracker · Post #417 · 13.11.2025 г., 11:58
⏰#PLANCK Claim with minimum 220 pts starts in about 2 minutes 🎁 Airdrop: 200 $PLANCK ($NotAvailable)
Hashtags
@sudo_recast · Post #516 · 23.11.2022 г., 13:40
拖延了很久的普朗克配列鍵盤。零件全部是自己選購和組裝的,第一次客制化嘗試。 #planck#keyboard
@cosmomyst · Post #403 · 10.10.2025 г., 18:21
🪐 The cosmic microwave background, a faint glow that bathes the entire universe, carries subtle imprints called "acoustic peaks"—tiny wiggles in its temperature pattern, mapped by observatories like Planck. These acoustic peaks reveal the sound waves that rippled through the hot, dense plasma of the early universe, showing how matter and energy once "rang" together before the first atoms even formed. ✨ #microwaveradiation⚡#earlyuniverse⚡#planck⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #355 · 30.09.2025 г., 22:21
🪐 Stretching across all of space, the cosmic microwave background is sprinkled with mysterious "hot" and "cold" rings—subtle patterns first mapped by the Planck satellite. One of these ring structures, dubbed the "CMB rings," shows up as smooth, circular features and could be the leftover imprint of massive waves moving through the young universe, giving scientists a unique window into the conditions just hundreds of thousands of years after the Big Bang. ✨ #cosmicmicrowavebackground⚡#earlyuniverse⚡#planck⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #207 · 01.09.2025 г., 20:11
🪐 The cosmic microwave background (CMB) is a faint glow that fills the universe, left over from when the cosmos was just 380,000 years old. Tiny temperature differences in the CMB, first mapped in detail by the Planck satellite, reveal subtle "hot" and "cold" spots—clues to how galaxies, like the Milky Way and Andromeda, began to form from small ripples in the early universe. ✨ #microwave⚡#background⚡#universe⚡#Planck⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries