File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments