Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/12418#issuecomment-212376795
  
    @zsxwing I made a mistake in my description above. Actually the return 
value determines whether timeout occurred. You are correct that really 
`InterruptedException` only occurs when the thread is interrupted while 
waiting, not on timeout. That still seems like something one might want to 
catch, and JDK "await" methods throw this exception. These are the only await 
methods I can see in the Java-specific API. I still think this is worth 
merging, but really this is a complex API question. 


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to