Skip to content

Commit b1aaa57

Browse files
committed
Remove CancelAsync that is not available on .NET Framework
1 parent 98ec85e commit b1aaa57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Lucene.Net.Tests.Suggest/Spell/TestSpellChecker.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ public async Task TestConcurrentAccess()
506506

507507
// LUCENENET NOTE: This is technically pointless, since by this point we've already queued all the tasks.
508508
// Leaving this here for compatibility and possible future test changes that might use it properly.
509-
await executorShutdown.CancelAsync(); // Stop queueing new tasks
509+
// ReSharper disable once MethodHasAsyncOverload - not available in .NET Framework
510+
executorShutdown.Cancel(); // Stop queueing new tasks
510511

511512
try
512513
{

0 commit comments

Comments
 (0)