Hi,

`add_done_callback` wasn't added to grpc.aio.Server because there was a 
discussion that it overlaps with server interceptors: 
https://github.com/grpc/grpc/pull/22503.

I can update the PR later this week. If possible, please explain more about 
your use case and why you think `add_done_callback` would be handy.

On Saturday, April 3, 2021 at 2:56:56 PM UTC-7 [email protected] wrote:

> Hi,
>
> Using python grpc.aio, I'm not able to add a callback  on server side 
> (using context) to be invoked on a grpc stream terminated/cancelled -- I 
> use grpc.aio.server().
> The documentation here 
> <https://grpc.github.io/grpc/python/grpc_asyncio.html#shared-context> 
> mentions 
> the callback, but I can't seem to be able to get it to work. 
>
> If I use grpc.server() instead, I can set add_callback()
>
> I'm using:
> Name: grpcio
> Version: 1.36.1
> Name: grpcio-tools
> Version: 1.35.0
> Name: aiogrpc
> Version: 1.8
>
> Thanks
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/1e2cfa41-2531-44e3-97f2-eff35b2265b4n%40googlegroups.com.

Reply via email to