mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-05 19:00:33 -05:00
Fut: add Infix_local
This commit is contained in:
parent
e618739442
commit
bd1ada40d4
2 changed files with 6 additions and 2 deletions
|
|
@ -329,10 +329,12 @@ end) : INFIX = struct
|
|||
let ( and* ) = both
|
||||
end
|
||||
|
||||
include Infix_ (struct
|
||||
module Infix_local = Infix_ (struct
|
||||
let pool = None
|
||||
end)
|
||||
|
||||
include Infix_local
|
||||
|
||||
module Infix (X : sig
|
||||
val pool : Pool.t
|
||||
end) =
|
||||
|
|
|
|||
|
|
@ -141,8 +141,10 @@ module type INFIX = sig
|
|||
val ( and* ) : 'a t -> 'b t -> ('a * 'b) t
|
||||
end
|
||||
|
||||
module Infix_local : INFIX
|
||||
(** Operators that run on the same thread as the first future. *)
|
||||
|
||||
include INFIX
|
||||
(** Operators that run on the same thread *)
|
||||
|
||||
(** Make infix combinators *)
|
||||
module Infix (_ : sig
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue