Using a value after it has been set by asynchronous code

By now you may have read this post explaining what “asynchronous” means. If you haven’t, please read it first!

So, if you understand what “asynchronous” means, then you won’t make the biggest mistake that people tend to make with asynchronous code, namely: outside asynchronous code, trying to use a value that depends on asynchronous code.

Continue reading