-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a few downlevel TimeProvider issues (#85346)
- Consistently null check the Timer stored in the state object - Complete the a task canceled due to the CancellationToken with the CancellationToken - Avoid an unnecessary closure in Delay - Make TimeProvider.System.CreateTimer use Timer's ctor that takes duration/period rather than making a separate call to Change
- Loading branch information
1 parent
4ab5265
commit 45e6aed
Showing
3 changed files
with
75 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters