WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 34401156

(no title)

johnbcoughlin | 3 years ago

What should it do when you call an async function from non-async? Block?

discuss

order

ktpsns|3 years ago

I guess there is no easy answer for that. Here is an interesting blog post which resembles closely my opinion: https://www.tedinski.com/2018/11/13/function-coloring.html

Edit: And of course there are alternatives such as Go or Zig: https://kristoff.it/blog/zig-colorblind-async-await/

powered by hn/api // news.ycombinator.com