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 01c083d commit 3951fbfCopy full SHA for 3951fbf
src/FSharpy.TaskSeq.Test/TestUtils.fs
@@ -1,4 +1,4 @@
1
-namespace FSharpy.Tests
+namespace FSharpy.Tests
2
3
open System
4
open System.Threading
@@ -65,12 +65,13 @@ type DummyTaskFactory(µsecMin: int64<µs>, µsecMax: int64<µs>) =
65
//let! _ = Task.Delay(rnd ())
66
let! _ = Task.Delay 0 // this creates a resume state, which seems more efficient than SpinWait.SpinOnce, see DelayHelper.
67
DelayHelper.delayMicroseconds (rnd ()) false
68
- x <- x + 1
+ Interlocked.Increment &x |> ignore
69
+ //x <- x + 1
70
return x // this dereferences the variable
71
}
72
73
let runTaskDirect i = backgroundTask {
74
75
return x
76
77
0 commit comments