So I just have read that Promises actually block code execution (here: Why is my chained promise blocking?), but I know that I can for sure run a promise with a call to a server api and it won't block the website code from running even if it takes many seconds. So how come Promise can sometimes block the execution and sometimes not.
Right now I'm writing an Electron app for personal use, I do a lot of I/O operations at one point so I used wrapped that code in a Promise, as I thought it will make that code run in parallel to the rest of my app, but as it turns out it doesn't and whenever that Promise is called the whole app stops working until the Promise resolves.