Skip to content

Apply nanoseconds precision for QueueInputStream timeout duration.#453

Merged
garydgregory merged 1 commit into
apache:masterfrom
maxxedev:QueueInputStream-nanos
Apr 23, 2023
Merged

Apply nanoseconds precision for QueueInputStream timeout duration.#453
garydgregory merged 1 commit into
apache:masterfrom
maxxedev:QueueInputStream-nanos

Conversation

@maxxedev

Copy link
Copy Markdown
Contributor
Apply nanoseconds precision for timeout duration.
Also improve javadocs

@kinow kinow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I couldn't see anywhere in the class telling the unit of time for the timeout. Maybe that should go in the javadoc? Thanks!

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #453 (0a339fe) into master (7be5b59) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master     #453   +/-   ##
=========================================
  Coverage     84.73%   84.73%           
  Complexity     3293     3293           
=========================================
  Files           222      222           
  Lines          7912     7912           
  Branches        948      948           
=========================================
  Hits           6704     6704           
  Misses          959      959           
  Partials        249      249           
Impacted Files Coverage Δ
.../org/apache/commons/io/input/QueueInputStream.java 96.29% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@maxxedev

Copy link
Copy Markdown
Contributor Author

The timeout is configurable through the public API with a Duration value which encapsulates both time amount and time unit.

This PR changes so that internal usage and conversion of Duration is more precise up to nanoseconds.

@garydgregory garydgregory merged commit 4ba6292 into apache:master Apr 23, 2023
@garydgregory garydgregory changed the title Apply nanoseconds precision for timeout duration. Apply nanoseconds precision for QueueInputStream timeout duration. Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants