Hacker News new | ask | show | jobs
by jeroenhd 23 days ago
> you do not need to use another unsafe block to call the function

And in C#, you can just type `await` and call an async function from a sync function.

Calling unsafe requires an unsafe block from safe functions. That's essentially the same thing as async/await in many languages (Rust does things differently, of course, but that's even worse in my opinion).

1 comments

> And in C#, you can just type `await` and call an async function from a sync function.

Yes, but not in JavaScript.