mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Remove use of "async" (future C# keyword)
Work Item: 16709 --HG-- branch : dev
This commit is contained in:
@@ -101,13 +101,13 @@ namespace Orchard.Tests.Mvc {
|
||||
});
|
||||
|
||||
Assert.That(where, Is.EqualTo("init"));
|
||||
var async = action.BeginInvoke(null, null);
|
||||
var asyncResult = action.BeginInvoke(null, null);
|
||||
Thread.Sleep(75);
|
||||
Assert.That(where, Is.EqualTo("before"));
|
||||
readLock.Dispose();
|
||||
Thread.Sleep(75);
|
||||
Assert.That(where, Is.EqualTo("after"));
|
||||
action.EndInvoke(async);
|
||||
action.EndInvoke(asyncResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user