Skip to content

Commit

Permalink
Make sure to complete the interruption CB
Browse files Browse the repository at this point in the history
  • Loading branch information
kyri-petrou committed Jul 25, 2024
1 parent 6e57f13 commit cbe8bc5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ package object interop {
fiber.unsafe.removeObserver(completeCb)
fiber.tellInterrupt(Cause.interrupt(fiber.id))
// Allow the interruption to be interrupted
Some(F.delay(fiber.unsafe.removeObserver(interruptCb)))
Some(F.delay {
fiber.unsafe.removeObserver(interruptCb)
interruptCb(null)
})
}
}))
case Right(v) => Right(v) // No need to invoke the callback, sync resumption will take place
Expand Down

0 comments on commit cbe8bc5

Please sign in to comment.