grpc / grpc/grpc-java

Utility class for automatically cancelling a context after an operation

Open
#3,506 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

CancellableContext must always be cancelled at the end of the request. Let's add a utility that simplifies the common cases, for example:
- run a Runnable, and then cancel when done or exception thrown
- run a Callable, and then cancel when done or exception thrown
- run a Callable>, and cancel when done, or exception thrown, or ListenableFuture cancelled by user

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.