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

.Net: chore: avoid awaiting delay if its zero #9770

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

baywet
Copy link
Member

@baywet baywet commented Nov 20, 2024

This pull request adds conditions to avoid awaiting a delay task if the delays is zero ms to reduce unnecessary allocs/context switching/etc...

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
@baywet baywet requested a review from a team as a code owner November 20, 2024 17:30
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Nov 20, 2024
@github-actions github-actions bot changed the title chore: avoid awaiting delay if its zero .Net: chore: avoid awaiting delay if its zero Nov 20, 2024
@baywet
Copy link
Member Author

baywet commented Nov 20, 2024

@dmytrostruk @RogerBarreto thanks for the prompt reviews, I don't have contrib on this repo, please go ahead and merge the PR for me.

@dmytrostruk dmytrostruk added this pull request to the merge queue Nov 20, 2024
Merged via the queue into microsoft:main with commit cc86425 Nov 20, 2024
16 checks passed
@baywet baywet deleted the fix/unecessary-delays branch November 20, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants