Add asynchronous request execution possibility

Moved from GitHub pydgraph/112

Posted by sausageRoll:

I’m looking for something similar to GitHub - dgraph-io/dgraph4j: Official Dgraph Java client. Maybe integration with async and tasks. Is that possible?

martinmr commented :

Looking into this. I haven’t worked with python async tools too much but from what I gather most of that support is in python 3. Which might be a problem given that we are still supporting python 2.

martinmr commented :

So it looks like this is supported by grpc: https://grpc.io/docs/tutorials/basic/python/#calling-service-methods