This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Repository navigation
Add test for wait on task with synchronously scheduled continuations - #7055
Merged
Merged
Conversation
Member
Author
|
I have noticed this because of the fix for this bug is missing in the CoreRT clone of System.Threading.Tasks. I will add the fix there as well. |
Member
Author
|
@stephentoub PTLA |
| while (!cts.IsCancellationRequested) | ||
| { | ||
| Task.Delay(1).Wait(); | ||
| } |
Member
There was a problem hiding this comment.
This could just be:
cts.WaitHandle.WaitOne();or rather than using a CTS, a ManualResetEventSlim could be used directly.
Member
|
A few nits, otherwise LGTM. Thanks for adding it. |
Member
Author
|
Incorporated feedback |
Member
|
LGTM. Thanks, Jan. |
dotnet-bot
pushed a commit
to dotnet-bot/corert
that referenced
this pull request
Mar 19, 2016
…nuations Port of bug fix that was made in full framework and CoreCLR a few years ago (TFS change #681661), but was missed for .NET Native / CoreRT. Regression test: dotnet/corefx#7055 [tfs-changeset: 1587869]
stephentoub
added a commit
that referenced
this pull request
Mar 19, 2016
Add test for wait on task with synchronously scheduled continuations
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is regression test for
http://stackoverflow.com/questions/10775321/bug-in-tpl-taskcontinuationoptions-executesynchronously/10775875 that was fixed a couple of years ago.