Skip to content

Commit 044d989

Browse files
committed
Rearrange
1 parent b021a17 commit 044d989

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

SyncOverAsync.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,12 @@ public Task Run()
66
{
77
return this.WrapInContext(() =>
88
{
9-
BlocksUsesDefaultScheduler();
10-
//BlocksAndPotentiallyDeadlocks();
9+
BlocksAndPotentiallyDeadlocks();
1110
//BlocksAndPotentiallyDeadlocks2();
11+
// BlocksUsesDefaultScheduler();
1212
});
1313
}
1414

15-
string BlocksUsesDefaultScheduler()
16-
{
17-
return Task.Run(() => this.DoAsyncOperation()).GetAwaiter().GetResult();
18-
}
19-
2015
string BlocksAndPotentiallyDeadlocks()
2116
{
2217
return this.DoAsyncOperation().GetAwaiter().GetResult();
@@ -29,6 +24,11 @@ string BlocksAndPotentiallyDeadlocks2()
2924
return task.GetAwaiter().GetResult();
3025
}
3126

27+
string BlocksUsesDefaultScheduler()
28+
{
29+
return Task.Run(() => this.DoAsyncOperation()).GetAwaiter().GetResult();
30+
}
31+
3232
// other very creative approaches
3333
string BlocksUsesDefaultSchedulerThrowsAggregateException()
3434
{

0 commit comments

Comments
 (0)