Events are the first place you are likely to meet asynchronous functions, but once you have events and an event dispatching system you can't stop there. Any long running function has to be implemented ...
The callback is the most common approach to asynchronous code but it distorts the flow of control and potentially loses context. For example when you convert the asynchronous call to a callback all of ...