ozgur / python-firebase

Python interface to the Firebase's REST API
http://ozgur.github.com/python-firebase/
MIT License
593 stars 155 forks source link

ThreadPool instead of multiprocessing.Pool #28

Open julkiewicz opened 10 years ago

julkiewicz commented 10 years ago

Would there be any problems with using ThreadPool instead of multiprocessing.Pool in the library?

I created a patch that performs the switch however I would like to understand whether this change doesn't cause any thread-safety problems. From what I can see requests library is thread-safe. Are there any shared resources between different "jobs" executed inside the pool?