Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
majocha committed Oct 28, 2024
1 parent 37c3d89 commit 9501246
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ type AsyncModule() =
let mutable running = new CountdownEvent(1)

let job i = async {
running.AddCount 1
use! holder = Async.OnCancel (running.Signal >> ignore)
use! holder =
running.AddCount 1
Async.OnCancel (running.Signal >> ignore)
do! failOnlyOne |> Async.AwaitWaitHandle |> Async.Ignore
running.Signal() |> ignore
failwith "boom"
Expand Down

0 comments on commit 9501246

Please sign in to comment.