eWaterCycle / grpc4bmi

gRPC wrapper for model with a Basic modeling interface
https://grpc4bmi.readthedocs.io
Apache License 2.0
5 stars 4 forks source link

asyncio client #46

Open sverhoeven opened 5 years ago

sverhoeven commented 5 years ago

The update method on the client is blocked until the server finishes. It would be nice if the update method on the client is non-blocking using asyncio. That way multiple models can be updated in parallel using asyncio.gather.

There is https://github.com/vmagamedov/grpclib which has a asynchronous client.

goord commented 5 years ago

We may also want to consider the api that amuse uses (ask @ipelupessy) where every call accepts the extra optional argument async=True making the call return a request object that can be added to a pool..