2 ms·
Because it doesn't block the thread. The idea is that this code is executed inside of a thread that, if it blocks, will cause the application to hang. For examp
by scott_s 13y ago
Because it doesn't block the thread. The idea is that this code is executed inside of a thread that, if it blocks, will cause the application to hang. For example, in a GUI or a server. So, if its a thread driving a GUI, and it's blocked on user input, then the entire application interface will be unresponsive until it receives that input.
- danabramov 13y agoThis. Specifically, I'm thinking about iOS prompts and alerts, they are not blocking.
- gruseom 13y agoGreat comment! I missed that.