Comment by masklinn

Comment by masklinn a day ago

3 replies

You can call an async function from a function that is not async by passing in a global runtime (/ event loop).

As a trivial example the main entry point in rust is never async. How’d you suppose you’d bootstrap the runtime that you’d eventually need.

This is pretty much like every other langage.

throwawaymaths a day ago

and yet... there are libraries that were written twice, once for async and once for not.

  • masklinn a day ago

    Which should be a pretty big hint that you've misidentified the issue.

almostgotcaught a day ago

People in software really do have poor abilities to see the forest for the trees don't they lol