New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding a timeout when submiting a task #129
Comments
Perhaps the builder pattern may be applied to avoid an explosion of methods in
This means |
Btw, JDK9 added delay and timeout to |
Take the following example
This task could take a long time to resolve its value. One could argue thew task may have it's own timeout mechanism (if the HttpClient supports it), but what if it doesn't? What if the underlying task has no explicit means to issue a timeout? Consider this alternative
Or even
The advantage being that the amount and the time unit are contained between an immutable pair. This will require a custom
Duration
class.The text was updated successfully, but these errors were encountered: