Skip to content

Added Context::deadline(&self) -> SystemTime #583

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

Merged
merged 1 commit into from
Jan 6, 2023
Merged

Added Context::deadline(&self) -> SystemTime #583

merged 1 commit into from
Jan 6, 2023

Conversation

dcormier
Copy link
Contributor

@dcormier dcormier commented Jan 6, 2023

Description of changes:

Added a function to get the SystemTime value for the deadline of the context.

There have been multiple times that I've needed a SystemTime (or similar) value, rather than simply the epoch ms u64 that Context currently exposes. And I've watched other devs trip over that existing u64 value. This should make it easier to use the deadline.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

@calavera calavera merged commit 128aef4 into awslabs:main Jan 6, 2023
@dcormier dcormier deleted the dc/deadline branch January 6, 2023 19:32
@dcormier
Copy link
Contributor Author

dcormier commented Jan 6, 2023

Thanks @calavera!

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.

2 participants