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

[release/9.0] Check CancellationToken before TimeSpan in TimeProviderTaskExtensions #107416

Merged
merged 2 commits into from
Sep 6, 2024

Commits on Sep 5, 2024

  1. Check CancellationToken before TimeSpan.Zero in TimeProviderTaskExten…

    …sions
    
    This makes the down-level behavior for Delay and WaitAsync match the
    behavior in .NET 8 and later, prefering to return a Canceled task over
    a Completed task or TimeoutException when the TimeSpan is Zero and the
    CancellationToken is already Canceled.
    
    Fixes #106996
    brantburnett authored and github-actions committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    9ce491c View commit details
    Browse the repository at this point in the history
  2. Test improvements based on feedback

    brantburnett authored and github-actions committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    8d96aa1 View commit details
    Browse the repository at this point in the history