Skip to content

Commit 1094b00

Browse files
committed
refactoring
1 parent 61d279d commit 1094b00

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

fsharp/HopacSeries/Part2/script.fsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
open Hopac
66

77
type JobStatus =
8-
| Started of int
9-
| Completed of int
8+
| Started of jobId : int
9+
| Completed of jobId : int
1010

11-
let rec jobStatusPrinterJob jobStatusChannel = job {
11+
let jobStatusPrinterJob jobStatusChannel = job {
1212
let! jobStatus = Ch.take jobStatusChannel
1313
match jobStatus with
1414
| Started jobId ->
@@ -33,4 +33,6 @@ let main jobStatusChannel jobsCount = job {
3333
let jobStatusChannel = Ch<JobStatus>()
3434
let jobsCount = 5
3535

36-
main jobStatusChannel jobsCount |> run
36+
#time "on"
37+
main jobStatusChannel jobsCount |> run
38+
#time "off"

0 commit comments

Comments
 (0)