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 61d279d commit 1094b00Copy full SHA for 1094b00
fsharp/HopacSeries/Part2/script.fsx
@@ -5,10 +5,10 @@
5
open Hopac
6
7
type JobStatus =
8
-| Started of int
9
-| Completed of int
+| Started of jobId : int
+| Completed of jobId : int
10
11
-let rec jobStatusPrinterJob jobStatusChannel = job {
+let jobStatusPrinterJob jobStatusChannel = job {
12
let! jobStatus = Ch.take jobStatusChannel
13
match jobStatus with
14
| Started jobId ->
@@ -33,4 +33,6 @@ let main jobStatusChannel jobsCount = job {
33
let jobStatusChannel = Ch<JobStatus>()
34
let jobsCount = 5
35
36
-main jobStatusChannel jobsCount |> run
+#time "on"
37
+main jobStatusChannel jobsCount |> run
38
+#time "off"
0 commit comments