tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Support of asynchronous api calls. #49

Closed Dr-ZeeD closed 8 years ago

Dr-ZeeD commented 8 years ago

I suppose the title says it all ;)

tejado commented 8 years ago

What do you have exactly in mind? callback to a given function when the response is returned? Otherwise it could be solved with additional code around the API.

Dr-ZeeD commented 8 years ago

At the moment I do not see a way to start asynchronous api calls except for starting multiple processes. It'd be nice if something like grequests could be supported :)

RyanHope commented 8 years ago

I could port the backend to use Twisted very easily. That would support async calls. This was actually one of the first thing that I was going to do.

tejado commented 8 years ago

With the latest commit, pgoapi should be thread-safe