home.social

#await — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #await, aggregated by home.social.

fetched live
  1. Как сломать Swift Concurrency

    Нужно выполнять асинхронные операции, поддерживать многозадачность в приложении? Async/await к вашим услугам - просто и приятно. Кооперативный пул эффективно переключает потоки между задачами, а компилятор проверяет типы на потокобезопасность. И даже можно подсоединять старые части кода, написанные ещё на GCD! Вот только приложение на проде почему-то начало виснуть…

    habr.com/ru/articles/1055810/

    #swift #concurrency #async #await #gcd #task #ios #deadlock #threads

  2. Почему миллион корутин на Rust весит меньше, чем сто тысяч на Python

    Миллион асинхронных задач на Rust спокойно живёт в нескольких сотнях мегабайт. Сто тысяч корутин на Python нередко упираются в память раньше. Дело не в том, что “Rust быстрый, а Python медленный” - дело в том, ГДЕ физически лежит состояние приостановленной задачи. Разбираю, во что превращается ваш async fn после компиляции: стейт-машина на стеке против объекта в куче. Сравниваю модели Rust (Tokio), Python (asyncio), C# и JavaScript - кто аллоцирует на каждый await, а кто нет, и почему это видно на счётчике RAM при 100k задач. Внутри: что генерирует компилятор, куда уезжает состояние между await, stackful против stackless, и что с этим делать сегодня.

    habr.com/ru/articles/1046862/

    #async #await #корутины #Rust #Tokio #asyncio #конкурентность

  3. The German neobank Trade Republic has announced that it will serve as a distribution partner for private investors regarding the planned Initial Public Offering... news.osna.fm/?p=49275 | #news #await #billiondollar #details #ipo

  4. The DAX experienced a subdued performance throughout the day on Thursday, remaining in negative territory until lunchtime despite a weak start. Around 9:30 AM,... news.osna.fm/?p=48147 | #news #amid #await #dax #deal

  5. The DAX started trading Wednesday with modest gains. The benchmark index was calculated at approximately 24,410 points by 9:30 AM, marking a 0.1 percent increas... news.osna.fm/?p=47031 | #news #await #crucial #dax #earnings

  6. [Перевод] Async/Await в C# это синтаксический сахар для конечного автомата

    Перевод статьи, посвящённой устройству конечного автомата асинхронных методов. Разбор основных понятий, декомпилированный код с подробными комментариями, раскрытие секретов магии асинхронности и подробная схема.

    habr.com/ru/articles/1035442/

    #асинхронность #async #await #c# #конечный_автомат #awaiter #c#net #taskbuilder #statemachine

  7. The U.S. stock markets ended Wednesday with mixed results. The Dow Jones Industrial Average closed at 49,693 points, marking a 0.1 percent decrease compared to... news.osna.fm/?p=45886 | #news #await #economy #global #investors

  8. 🥳🎉 Oh wow, #ClojureScript finally got async/await! 🚀 Just 1.12.145 releases later, they've caught up to JavaScript's 2017 #tech. 🎩✨ So innovative, it's practically cutting-edge... if you're living in the past. 📅🔄
    clojurescript.org/news/2026-05 #async #await #JavaScript #innovation #news #HackerNews #ngated

  9. 🥳🎉 Oh wow, #ClojureScript finally got async/await! 🚀 Just 1.12.145 releases later, they've caught up to JavaScript's 2017 #tech. 🎩✨ So innovative, it's practically cutting-edge... if you're living in the past. 📅🔄
    clojurescript.org/news/2026-05 #async #await #JavaScript #innovation #news #HackerNews #ngated

  10. The DAX index managed to reverse a weak start on Thursday, climbing into positive territory by lunchtime. By a little after 12:30, the index stood at 24,030 poi... news.osna.fm/?p=43918 | #news #amid #await #dax #decision

  11. The DAX continued its upward trend on Monday afternoon, remaining positive after an already strong start to trading. Around 12:30 PM, the benchmark index was ca... news.osna.fm/?p=43492 | #news #anchors #await #beat #earnings

  12. The DAX continued its upward trend on Tuesday afternoon after a positive start to the trading day. Around 12:30 PM, the leading index was measured at approximat... news.osna.fm/?p=41827 | #news #amid #await #corporate #dax

  13. The German stock index, the Dax, began trading on Thursday session with losses. Around 9:30 a.m., the leading index was calculated at approximately 23,850 point... news.osna.fm/?p=41224 | #news #await #below #dax #drops

  14. The DAX dropped sharply at market open. Just after 9:30 a.m. it stood at around 22 425 points in the Frankfurt trading hall-a 0.8 % decline from the previous da... news.osna.fm/?p=39838 | #news #amid #analysts #await #conflict

  15. The German benchmark index opened Thursday morning in the red. By 9:30 a.m. the DAX was at roughly 22 710 points, about 1.1 % below the previous day's close. Th... news.osna.fm/?p=39733 | #news #await #dax #deadline #iran

  16. The German benchmark index opened Thursday morning in the red. By 9:30 a.m. the DAX was at roughly 22 710 points, about 1.1 % below the previous day's close. Th... news.osna.fm/?p=39733 | #news #await #dax #deadline #iran

  17. alojapan.com/1466449/luxury-go Luxury golf tours await wealthy foreign guests at Japan’s Nikko #await #Foreign #golf #guests #JapanTours #Japans #luxury #nikko #tours #wealthy Travel & Leisure Tobu Railway offers play at five courses, visits to famous tourist spots Participants in a trial tour play golf at Tobu Fujigaoka Country Club in Tochigi, Japan. (Tobu Railway) TOKYO — Tobu Railway will launch luxury tours in October that combine golf and sightseeing in Tochigi

  18. 30 a..m., slightly below Friday's closing level. At the top of the daily leaders list was Commerzbank, while Unicredit had presented a takeover bid for the bank... news.osna.fm/?p=38346 | #news #await #bidmarkets #buyout #commerzbank

  19. The DAX opened on Wednesday morning with losses. At 9:30 a.m. it was trading around 23,675 points, which was 1.2 percent below the previous day's closing level.... news.osna.fm/?p=37824 | #news #await #data #dax #inflation

  20. The DAX opened on Wednesday morning with losses. At 9:30 a.m. it was trading around 23,675 points, which was 1.2 percent below the previous day's closing level.... news.osna.fm/?p=37824 | #news #await #data #dax #inflation

  21. The statutory health insurers are awaiting a green light from the Bundestag for the hospital reform this Friday, but their expectations for large savings have e... news.osna.fm/?p=37086 | #news #amid #await #concerns #cost

  22. U.S. stock markets closed higher on Wednesday. At the close in New York, the Dow Jones Industrial Average settled at 48,739, up 0.5 percent from the previous da... news.osna.fm/?p=36879 | #news #await #investors #iran #negotiations

  23. The German DAX opened slowly on Friday morning. At about 9:30 a.m. local time the benchmark index was at 25,305 points, which is roughly 0.1 % above the previou... news.osna.fm/?p=36114 | #news #await #chicago #cpi #dax

  24. Как устроены задачи (Task) в asyncio

    В прошлой статье мы разобрали механику событийного цикла asyncio. В этот раз поговорим о задачах, объектах класса asyncio.Task (они же по-простому "таски"). Тема важная, потому что по сути вся работа событийного цикла сводится к постоянному жонглированию задачами: запустить, приостановить, разбудить, завершить. Если понять, как устроена таска изнутри, изрядная доля магии asyncio (как и нелюбви к нему) исчезнет. На десерт шок-контент: почему await далеко не всегда является точкой, где управление возвращается событийному циклу, чтобы он мог переключиться на другую задачу. Погружаемся

    habr.com/ru/articles/1002690/

    #asyncio #async #await #python #асинхронность #асинхронное_программирование #таски #event_loop

  25. 30 a..m., essentially mirroring yesterday's closing level. The top of the gains list included Scout24, Brenntag, and Symrise, while Qiagen, Rheinmetall, and Sie... news.osna.fm/?p=34746 | #news #await #corporate #data #dax

  26. U.S. stocks closed unevenly on Tuesday. At the close in New York, the Dow climbed to 50,188 points, a 0.1 % gain from the previous day. The Nasdaq 100 finished... news.osna.fm/?p=33803 | #news #await #dow #grows #investors

  27. CW: a rant with expletives about JavaScript

    So the caller must await too. Ah no, rather return-immediately-with-a-fucking-promise. And so the caller's caller too and so on.

    Now you hardly have a function call not preceded by await. Ask yourself: why is that not the default? For the other case, lets invent the keyword **getlost** to get the functionality we now have if we forget await.

    😡 Sorry for venting. It is a relief.

    #javascript #typescript #async #await #asyncawait

  28. CW: a rant with expletives about JavaScript

    Because that's what it actually is. It does not wait at all. Quite contrary, it returns immediately, throwing the rest of the function code into a pool of stuff to be executed some day.

    And the caller? Getting control back before things are really done? Without extra tooling the dev easily misses that the called async did exactly nothing and lets proceed the code as if. Fail!

    2/n

    #javascript #typescript #async #await #asyncawait

  29. CW: a rant with expletives about JavaScript

    TypeScript is fun, but often I hate the JavaScript async/await crap.

    Background: journal.stuffwithstuff.com/201

    Async is like mold spreading through the code base. On top of it: why is it called **await** and not **return-immediately-with-a-fucking-promise**? ...

    1/n

    #javascript #typescript #async #await #asyncawait

  30. On Tuesday, the DAX remained directionless after a cautious start to the trading day up until noon. At roughly 12:30 p.m. the index was trading at about 24,930 ... news.osna.fm/?p=32008 | #news #await #dax #fed #german

  31. On Monday afternoon the DAX drifted sluggishly. After a vague start that saw the index circle the zero line, it fell more clearly to 24,850 points by 12:30 pm,... news.osna.fm/?p=31888 | #news #await #dax #earnings #gold

  32. By mid‑afternoon on Friday, the DAX had not yet settled into a clear direction after a restrained start to the trading day. Around 12:30 GMT the index stood at... news.osna.fm/?p=31588 | #news #await #dax #holds #market

  33. [Перевод] Тихий Promise, который убьёт ваш сервер Node.js

    У вас есть продакшен-сервер. Он спокойно работает часами. А потом внезапно падает. Без предупреждения, без graceful-деградации. Просто мёртв. Виновник? Одна строчка кода, которая выглядит совершенно безобидно...

    habr.com/ru/articles/988132/

    #nodejs #промисы #асинхронность #promise #await #async #javascript #typescript #error_handling #обработка_ошибок

  34. Await своими руками в C#

    Привет, Хабр! Многим кажется, что await работает только с Task и ValueTask , но на самом деле язык позволяет сделать любой объект ожидаемым — нужно лишь реализовать определённый паттерн. Итак, зачем нужен свой await? Бывают случаи, когда вам хочется написать асинхронный метод, но результат приходит не из готового Task или таймера. Например, ждёте какое-то событие, изменение файла, считывание из сокета, или просто хотите встроить задержку без запуска Task . Когда вы пишете await expr , компилятор в глубине понимает так: берётся результат expr.GetAwaiter() , затем вызывается awaiter.IsCompleted . Если false , он подписывается на awaiter.OnCompleted , когда завершится, и потом берёт awaiter.GetResult() .

    habr.com/ru/companies/otus/art

    #C# #Асинхронное_программирование #await

  35. [Перевод] Почему асинхронный Python не такой популярный?

    Недавно на Youtube появилась документалка о Python . Примерно в середине ленты есть драматический эпизод о том, как переход от Python 2 к 3 разделил сообщество (спойлер: в конечном итоге этого не случилось ). Первые версии Python 3 (3.0-3.4) в основном делали упор на стабильность и упрощение перехода пользователей с версии 2.7. В 2015 была выпущена версия 3.5 с новой фичей: ключевыми словами async и await для выполнения корутин . Миновало десять лет и девять релизов, через считанные недели выпустят финальную версию Python 3.14. Пока все отвлеклись на фичи разноцветного REPL в 3.14, в release notes появились серьёзные заявления, связанные с конкурентностью и параллелизмом.

    habr.com/ru/articles/943878/

    #конкурентность #параллелизм #gil #async #await #asyncio

  36. For anyone willing to peer into the abyss ... github.com/DrHyde/shellscripts

    Instead of running three other scripts (each of which is a wrapper around `ffmpeg`) in turn, it now runs them in parallel, capturing the results, and then spitting out the results consistently no matter in what order the individual scripts finished.

    I think in this would be called / or some such. Normal devs just call it "programming".

  37. Swift concurrency. Executors, Actors и их связь с потоками

    В данной части из серии статей мы погрузимся чуть глубже в недра Swift Concurrency. Как определяется поток, на котором будет выполняться Task? Почему в рамках одной Task поток может меняться? Что такое Executor и на какие типы он делится? За что отвечает TaskExecutor, а за что SerialExecutor? Как определить текущий Executor по коду? Как использовать свой самописный Executor? В этой статье ответим на эти (и многие другие) вопросы.

    habr.com/ru/articles/887240/

    #swift #concurrency #actor #async #await #executor #job #task

  38. Async to run background function or task and return a value in C# Tip #41 To run a background task with async, define an async function that returns a value (e.g. string, int). Use await to get the result, matching types.
    #async #await #backgroundTask #CSharp #dotnet #programming #devtips

  39. Почему твой await fetch тормозит — и как это исправить

    Привет, Хабр! В этой статье рассмотрим, почему безобидная строчка await fetch() неожиданно превращается в тормоз, где именно она зарывает драгоценные миллисекунды — и что можно сделать с этим.

    habr.com/ru/companies/otus/art

    #js #fetch #await #undici #agent

  40. Объясняем UniTask так, чтобы понял даже ребенок (для Unity разработчиков и не только)

    Пишешь игру на Unity? Нужна производительность? UniTask – решение! Просто о сложном в этой статье. (Примеры про роботов, лего и машинки уже тут)

    habr.com/ru/articles/910512/

    #unitask #unity #async #await #task #c# #gamedev #оптимизация #просто_о_сложном

  41. 🚨 Breaking News: Python's async/await is just #magic spells for nerds! 🧙‍♂️✨ Dive into ten thousand meters of jargon to discover that marking functions as 'async' and calling them with 'await' somehow makes them do #tricks while you’re not looking. Who knew #Python was part-time magician? 🎩🐍
    tenthousandmeters.com/blog/pyt #async #await #programming #nerds #HackerNews #ngated