Non blocking python process or thread

Viewed 41257

I have a simple app that listens to a socket connection. Whenever certain chunks of data come in a callback handler is called with that data. In that callback I want to send my data to another process or thread as it could take a long time to deal with. I was originally running the code in the callback function, but it blocks!!

What's the proper way to spin off a new task?

3 Answers
Related