mirror of https://github.com/grpc/grpc-java.git
Before the service would be leaked, because when the scheduled future was cancelled the scheduler wouldn't be released. Also, Future isn't powerful enough to signal when we should release when cancelling. Given the nature of Context, it also seems beneficial to not have it own threads. Since any caller of withDeadline*() is required to cancel the Context, it shouldn't be too burdensome for them to manage the lifecycle of the scheduler. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle | ||