mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 11:15:38 -05:00
remove dead code
This commit is contained in:
parent
76ca0f2d88
commit
1d57ae8fbb
2 changed files with 1 additions and 17 deletions
|
|
@ -73,8 +73,7 @@ let num_tasks_ (self : state) : int =
|
||||||
let prepare_for_await () : Dla_.t =
|
let prepare_for_await () : Dla_.t =
|
||||||
(* current state *)
|
(* current state *)
|
||||||
let st :
|
let st :
|
||||||
((with_handler:bool -> task -> unit) * Suspend_types_.suspension) option
|
((with_handler:bool -> task -> unit) * Suspend_.suspension) option A.t =
|
||||||
A.t =
|
|
||||||
A.make None
|
A.make None
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
(** (Private) types for {!Suspend_}.
|
|
||||||
|
|
||||||
This module is an implementation detail of Moonpool and should
|
|
||||||
not be used outside of it. *)
|
|
||||||
|
|
||||||
type suspension = (unit, exn * Printexc.raw_backtrace) result -> unit
|
|
||||||
(** A suspended computation *)
|
|
||||||
|
|
||||||
type task = unit -> unit
|
|
||||||
|
|
||||||
type suspension_handler = {
|
|
||||||
handle: run:(with_handler:bool -> task -> unit) -> suspension -> unit;
|
|
||||||
}
|
|
||||||
[@@unboxed]
|
|
||||||
(** The handler that knows what to do with the suspended computation *)
|
|
||||||
Loading…
Add table
Reference in a new issue