mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-07 11:45:39 -05:00
lwt: trace the function that performs actions in batch
This commit is contained in:
parent
36c6e8e900
commit
b991a78f3e
1 changed files with 5 additions and 0 deletions
|
|
@ -64,6 +64,11 @@ module Perform_action_in_lwt = struct
|
||||||
(** Gets the current set of notifications and perform them from inside the
|
(** Gets the current set of notifications and perform them from inside the
|
||||||
Lwt thread *)
|
Lwt thread *)
|
||||||
let perform_pending_actions () : unit =
|
let perform_pending_actions () : unit =
|
||||||
|
let@ _sp =
|
||||||
|
Moonpool.Private.Tracing_.with_span
|
||||||
|
"moonpool-lwt.perform-pending-actions"
|
||||||
|
in
|
||||||
|
|
||||||
let l = Action_queue.pop_all actions_ in
|
let l = Action_queue.pop_all actions_ in
|
||||||
List.iter Action.perform l
|
List.iter Action.perform l
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue