mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
small api change in future
This commit is contained in:
parent
b4e07e07d2
commit
d74808efe0
2 changed files with 7 additions and 0 deletions
|
|
@ -524,3 +524,5 @@ module Infix = struct
|
|||
let (>>=) x f = flatMap f x
|
||||
let (>>) a f = andThen a f
|
||||
end
|
||||
|
||||
include Infix
|
||||
|
|
|
|||
|
|
@ -142,7 +142,12 @@ val spawn_process : ?pool:Pool.t -> ?stdin:string -> cmd:string ->
|
|||
val sleep : ?pool:Pool.t -> float -> unit t
|
||||
(** Future that returns with success in the given amount of seconds *)
|
||||
|
||||
|
||||
|
||||
module Infix : sig
|
||||
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
|
||||
val (>>) : 'a t -> (unit -> 'b t) -> 'b t
|
||||
end
|
||||
|
||||
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
|
||||
val (>>) : 'a t -> (unit -> 'b t) -> 'b t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue