❔ Can someone explain asynchronous code?

I've read the overview with the breakfast analogy on the Microsoft docs for .NET, and still don't get
  • how to use it (and efficiently)
  • how .NET is able to do many things on one thread at the same time
There is one way I think I understand.
  • callbacks
    • when a task is done, call a function to deal with the result
    • probably not very good
    • JS thing
Was this page helpful?