mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-05 19:00:33 -05:00
fix test
This commit is contained in:
parent
44edf60836
commit
bf649f5348
3 changed files with 6 additions and 1942 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
open! Moonpool
|
||||
module A = Atomic
|
||||
module F = Moonpool_fib.Fiber
|
||||
|
|
@ -160,7 +159,7 @@ let run ~pool ~pool_name () =
|
|||
let fibs =
|
||||
List.init 8 (fun idx -> F.spawn_top ~on:pool (fun () -> top idx))
|
||||
in
|
||||
List.iter F.wait_block_exn fibs;
|
||||
List.iter F.await fibs;
|
||||
|
||||
Printf.printf "tracing complete\n";
|
||||
Printf.printf "spans:\n";
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,11 +1,8 @@
|
|||
open! Moonpool
|
||||
module M_lwt = Moonpool_lwt
|
||||
|
||||
let ( let@ ) = ( @@ )
|
||||
|
||||
let () =
|
||||
(let@ pool = Ws_pool.with_ () in
|
||||
T_fibers.Fls.run ~pool ~pool_name:"ws_pool" ());
|
||||
|
||||
(let@ pool = Fifo_pool.with_ () in
|
||||
T_fibers.Fls.run ~pool ~pool_name:"fifo_pool" ());
|
||||
(let@ runner = M_lwt.lwt_main in
|
||||
T_fibers.Fls.run ~pool:runner ~pool_name:"lwt" ());
|
||||
()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue