We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3efb547 commit 29dd969Copy full SHA for 29dd969
tests/service/ModuleReaderCancellationTests.fs
@@ -4,6 +4,7 @@ open System
4
open System.IO
5
open System.Reflection
6
open System.Threading
7
+open FSharp.Compiler
8
open FSharp.Compiler.AbstractIL.IL
9
open FSharp.Compiler.AbstractIL.ILBinaryReader
10
open FSharp.Compiler.CodeAnalysis
@@ -22,7 +23,7 @@ let runCancelFirstTime f =
22
23
cts.Cancel()
24
25
requestCount <- requestCount + 1
- cts.Token.ThrowIfCancellationRequested()
26
+ Cancellable.CheckAndThrow()
27
28
f ()
29
0 commit comments