grpc / grpc-dart

The Dart language implementation of gRPC.
https://pub.dev/packages/grpc
Apache License 2.0
861 stars 271 forks source link

[question] Access ClientCall from generated service client #743

Open haf opened 1 month ago

haf commented 1 month ago

I'd like to implement cancellation.

image

Here's how grpc-4.0.1 creates the call. The call itself is cancellable, but it goes into a private field _call, so it's unreachable.

Is there way to cancel the call without reimplementing the generated client?

Something like

image