Calling a thread asynchronously with a callback

Diez B. Roggisch deets at
Mon Nov 27 19:07:34 CET 2006

Edwin Gomez wrote:

> I'm a C# developer and I'm new to Python.  I would like to know if the
> concept of Asynchronous call-backs exists in Python.  Basically what I
> mean is that I dispatch a thread and when the thread completes it invokes
> a method from the calling thread.  Sort event driven concept with threads.

Counter question: does such a thing exist in C#, and if, is it bound to some
existing event loop? 

I'm really curious, because having code being interrupted at any time by a
asynchronous callback strikes me as dangerous. But then maybe I'm just a
whimp :)


More information about the Python-list mailing list