Skip to content

Commit e3211fa

Browse files
committed
shortened delay
1 parent 9d14573 commit e3211fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncTesting/Commands/SaveWithNoDeadlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void Execute(object parameter)
3535
private async Task<string> CallSomethingAsync(TheViewModel vm)
3636
{
3737
//quick delay just to (attempt) to switch threads
38-
await Task.Delay(10).ConfigureAwait(continueOnCapturedContext:false);
38+
await Task.Delay(1).ConfigureAwait(continueOnCapturedContext:false);
3939
vm.CurrentThreadID = Thread.CurrentThread.ManagedThreadId;
4040
await Task.Delay(1000).ConfigureAwait(continueOnCapturedContext: false);
4141
return $"No deadlock because blocking call is on different context.";

0 commit comments

Comments
 (0)