Skip to content

Commit

Permalink
fix: use the new reset from Lev_fiber
Browse files Browse the repository at this point in the history
this version makes sure that we wake up the wheel appropriately

Signed-off-by: Rudi Grinberg <[email protected]>

ps-id: 9F9A1C0B-0F45-43D6-B1F7-A16791244BE7
  • Loading branch information
rgrinberg committed Feb 23, 2022
1 parent 653aada commit a249e61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.10.3

## Fixes

- Fix more debouncing bugs (#629)

# 1.10.2

## Fixes
Expand Down
2 changes: 1 addition & 1 deletion ocaml-lsp-server/src/ocaml_lsp_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ let set_diagnostics rpc doc =
task_if_running state.detached ~f:(fun () ->
let timer = Document.timer doc in
let* () = Lev_fiber.Timer.Wheel.cancel timer in
Lev_fiber.Timer.Wheel.reset timer;
let* () = Lev_fiber.Timer.Wheel.reset timer in
let* res = Lev_fiber.Timer.Wheel.await timer in
match res with
| `Cancelled -> Fiber.return ()
Expand Down
2 changes: 1 addition & 1 deletion submodules/lev

0 comments on commit a249e61

Please sign in to comment.