Skip to content

Cancellation of gRPC calls #154

@pschichtel

Description

@pschichtel

We have adapted the PermissionsServiceGrpc.PermissionsServiceStub to kotlin's Flows, which mostly works great for integration into suspend functions. One issue that I faced is cancellation though, as there is currently no way to cancel a call early.

The ClientCall<*, *> exposes a cancel operation, but the PermissionsServiceStub doesn't expose these call objects.

We originally intended to use the PermissionsServiceFutureStub, which would properly handle cancellation, but unfortunately it doesn't support the readRelationships operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions