You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[<Test; Ignore("This timing test fails in different environments. Skipping so that we don't assume an arbitrary CI environment has enough compute/etc. for what we need here.")>]
94
+
member_.``Evaluation can be cancelled``()=
95
+
use script =new FSharpScript()
96
+
letsleepTime=10000
97
+
let mutableresult= None
98
+
let mutablewasCancelled=false
99
+
use tokenSource =new CancellationTokenSource()
100
+
leteval()=
101
+
try
102
+
result <- Some(script.Eval(sprintf "System.Threading.Thread.Sleep(%d)\n2" sleepTime, tokenSource.Token))
103
+
// if execution gets here (which it shouldn't), the value `2` will be returned
0 commit comments