home.social

#await — Public Fediverse posts

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

  1. Async void в C#: Его опасности и почему он все еще существует

    Разбираем необычную конструкцию async void В чем отличие от написания async Task ? Какие проблемы могут за ней скрываться? Для чего ее ввели в язык? Как ей правильно пользоваться? Ответы на все эти вопросы далее в статье

    habr.com/ru/articles/1078372/

    #async_void #c# #async #асинхронное_программирование #исключения #антипаттерны #task #await #void #net

  2. Async void в C#: Его опасности и почему он все еще существует

    Разбираем необычную конструкцию async void В чем отличие от написания async Task ? Какие проблемы могут за ней скрываться? Для чего ее ввели в язык? Как ей правильно пользоваться? Ответы на все эти вопросы далее в статье

    habr.com/ru/articles/1078372/

    #async_void #c# #async #асинхронное_программирование #исключения #антипаттерны #task #await #void #net

  3. Async void в C#: Его опасности и почему он все еще существует

    Разбираем необычную конструкцию async void В чем отличие от написания async Task ? Какие проблемы могут за ней скрываться? Для чего ее ввели в язык? Как ей правильно пользоваться? Ответы на все эти вопросы далее в статье

    habr.com/ru/articles/1078372/

    #async_void #c# #async #асинхронное_программирование #исключения #антипаттерны #task #await #void #net

  4. 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

  5. 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

  6. 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