News for hackers. Stuff that matters.
Re:Callbacks as our Generation's Goto Statement by scott_s on Thursday August 15, 2013 @10:59PM (#6221964)
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.
Re:Callbacks as our Generation's Goto Statement by danabramov on Friday August 16, 2013 @05:00AM (#6222907)
This. Specifically, I'm thinking about iOS prompts and alerts, they are not blocking.
Re:Callbacks as our Generation's Goto Statement by gruseom on Friday August 16, 2013 @03:41PM (#6226303)
Great comment! I missed that.