Github user pingtimeout commented on the pull request:
https://github.com/apache/incubator-tinkerpop/pull/146#issuecomment-157746085
I think this case is exactly the reason why methods like `shutdown()` exist
independently from `shutdownNow()`. As you mentionned, adding
`.awaitTermination(...)` would make the async call synchronous.
I can only see 3 use cases here, and all of them are covered:
1. I want a synchronous shutdown, I should use `cluster.close()`
2. I want a asynchronous shutdown, I should use `cluster.closeAsync()`
3. I want a timely asynchronous shutdown, I should use
`cluster.closeAsync().get(5, TimeUnit.SECONDS)`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---