Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Redpill me on async/await

Name: Anonymous 2021-05-16 18:58

It seems forced and unnecessary in 96% of the cases I find

Name: Anonymous 2021-05-16 20:06

map + join

Name: Anonymous 2021-05-16 20:11

https://dis.tinychan.net/read/prog/1616089645
does anyone actually understand async/await?

Name: Anonymous 2021-05-17 19:44

"callback hell"
callbacks are always much faster than any "event-based" polling which is async
ultimately is: async is only performant in optimized, compiled back-end code
that you want to scale, not client-side scripts.

Name: Anonymous 2021-05-17 19:51

>>4
PS I am anus

Name: Anonymous 2021-05-22 13:32

Eelsill me on ahorse/afucker

Name: Anonymous 2021-05-22 13:33

>>6 I meant to type
"Eelspill me on ahorse/afucker"

Admin-san please do the needful Sir.

Name: Anonymous 2021-05-22 14:10

>>7
edit your post

Name: Anonymous 2021-05-23 2:05

Async and await are useful in JavaScript. Callbacks are fine for simple cases, but suck when you need to compose asynchronous operations. Using promises (futures) directly also sucks, because you end up duplicating all the language's normal control flow operators in this shitty, baroque DSL (think
then()
,
catch()
,
finally()
, etc). You also have to follow a bunch of annoying coding patterns to guard against accidentally returning non-promise values, throwing synchronous exceptions, etc.

async
and
await
take away some of this pain. You can pretty much write code in the obvious manner, and it'll it work asynchronously under the hood.

Name: Anonymous 2021-05-25 18:25

Yeah it's fucking disgusting and should be hidden away at the framework/library/OS level.

AFAIK, it's only benefit is on say large cloud environments where you want to rinse as much from each instance as possible.

Name: Anonymous 2021-05-26 6:30

If you need to think about threading, your language is a failure.
Embrace golang.

Name: Anonymous 2021-05-28 1:54

Golang had a golden opportunity but was ruined by Unixfags chained to an obsolete C tradition. Sad!

Name: Anonymous 2021-05-29 11:53

>>12
That tradition works. Why break it?

Name: Anonymous 2021-05-30 16:44

>>13
It's too white

Name: Anonymous 2021-06-02 18:39

>>14
It's not white enough.

Name: Anonymous 2021-06-02 18:44

>>15
Your sickly yellow cum is a matter between you and your proctologist.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List