Skip to content

Commit 29dd969

Browse files
committed
Use Cancellable API
1 parent 3efb547 commit 29dd969

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/service/ModuleReaderCancellationTests.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ open System
44
open System.IO
55
open System.Reflection
66
open System.Threading
7+
open FSharp.Compiler
78
open FSharp.Compiler.AbstractIL.IL
89
open FSharp.Compiler.AbstractIL.ILBinaryReader
910
open FSharp.Compiler.CodeAnalysis
@@ -22,7 +23,7 @@ let runCancelFirstTime f =
2223
cts.Cancel()
2324

2425
requestCount <- requestCount + 1
25-
cts.Token.ThrowIfCancellationRequested()
26+
Cancellable.CheckAndThrow()
2627

2728
f ()
2829

0 commit comments

Comments
 (0)