Prevent your application from freezing and making users feel frustrated

Software which runs on a single thread is rather rare these days. We’ll often create an application that consumes an API on the web and has a graphical user interface (GUI). If we handle user interaction, make API calls and update the GUI all on the same thread, our application will often appear to be “frozen”. That’s quite a pain. Thankfully, this issue can be solved using background threads.

Let’s take a look at the following example.

Your Uncle Harold wants to check his email, but he finds Outlook very confusing. He asks you, his favourite niece or nephew who…

Joel Leblanc

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store