8 ms·
What should it do when you call an async function from non-async? Block?
by johnbcoughlin 4y ago
What should it do when you call an async function from non-async? Block?
- ktpsns 4y agoI 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 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/ https://kristoff.it/blog/zig-colorblind-async-await/