Skip to content

Commit

Permalink
Update TaskOfTWithTimeoutScenario.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 24, 2022
1 parent f17a087 commit 3c61a90
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ public class TaskOfTWithTimeoutScenario
public void ShouldThrowAWobbly()
{
var task = Task.Factory.StartNew(() =>
{
Task.Delay(5000).Wait();
return "foo";
},
{
Task.Delay(5000).Wait();
return "foo";
},
CancellationToken.None, TaskCreationOptions.None,
TaskScheduler.Default);

Expand Down

0 comments on commit 3c61a90

Please sign in to comment.