Then just calling the functions results in A being printed followed more or less immediately by B. Results in A being printed followed by B after 2 seconds. That is, longRunB only starts after ...
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 ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results