In article <[email protected]>, Marko Rauhamaa <[email protected]> wrote:
> Chris Angelico <[email protected]>: > > > I don't see how Marko's assertion that event-driven asynchronous > > programming is a breath of fresh air compared with multithreading. The > > only way multithreading can possibly be more complicated is that > > preemption can occur anywhere - and that's exactly one of the big > > flaws in async work, if you don't do your job properly. > > Say you have a thread blocking on socket.accept(). Another thread > receives the management command to shut the server down. How do you tell > the socket.accept() thread to abort and exit? You do the accept() in a daemon thread? -- https://mail.python.org/mailman/listinfo/python-list
