mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -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
|
||||
Lwt thread *)
|
||||
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
|
||||
List.iter Action.perform l
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue