Skip to content
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

Add PeriodicTimer.Period property #82560

Merged
merged 3 commits into from
Mar 2, 2023

Conversation

stephentoub
Copy link
Member

Fixes #60384

@ghost
Copy link

ghost commented Feb 27, 2023

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #60384

Author: stephentoub
Assignees: stephentoub
Labels:

area-System.Threading

Milestone: -

{
if (!TryGetMilliseconds(value, out uint ms))
{
throw new ArgumentOutOfRangeException(nameof(value));
Copy link
Member

Choose a reason for hiding this comment

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

Should this be a throw helper to allow Period to be inlined or are we thinking its not going to be called frequently enough to matter?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking it'd be called infrequently enough to not matter.

@stephentoub stephentoub merged commit b8a4f02 into dotnet:main Mar 2, 2023
@stephentoub stephentoub deleted the periodictimerperiodprop branch March 2, 2023 17:01
@ghost ghost locked as resolved and limited conversation to collaborators Apr 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API Proposal]: Expose method on PeriodicTimer to adjust interval
3 participants