Something more simple:
Call a sync function when you want to wait on the result before doing more.
Call an async function when you want to do the call, do other stuff, then handle the result later, or if you don’t care about the result at all.
Something more simple:
Call a sync function when you want to wait on the result before doing more.
Call an async function when you want to do the call, do other stuff, then handle the result later, or if you don’t care about the result at all.