Skip to content

Add PeriodicTimer.Period property#82560

Merged
stephentoub merged 3 commits into
dotnet:mainfrom
stephentoub:periodictimerperiodprop
Mar 2, 2023
Merged

Add PeriodicTimer.Period property#82560
stephentoub merged 3 commits into
dotnet:mainfrom
stephentoub:periodictimerperiodprop

Conversation

@stephentoub
Copy link
Copy Markdown
Member

Fixes #60384

@ghost
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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