←back to thread

A Few Words About Async

(yoric.github.io)
82 points vinhnx | 1 comments | | HN request time: 0s | source
Show context
valcron1000 ◴[] No.45788445[source]
> async/await is also available in a bunch of other languages, including F#, C#8, Haskell[...]

Haskell (GHC) does not provide async/await but uses a green thread model.

replies(3): >>45788625 #>>45788756 #>>45791833 #
1. Yoric ◴[] No.45791833[source]
(author here)

Well, I haven't used Haskell in a few years, so I could absolutely be wrong. That being said, I'm almost sure that I saw a presentation by Simon Marlowe 15-20 years ago demonstrating GHC with a multicore scheduler (alongside `seq` and `par`). Also, from the very same Simon Marlowe, there's a package called `async` https://hackage.haskell.org/package/async which basically provides async (no await, though).