mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -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 (>>=) x f = flatMap f x
|
||||||
let (>>) a f = andThen a f
|
let (>>) a f = andThen a f
|
||||||
end
|
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
|
val sleep : ?pool:Pool.t -> float -> unit t
|
||||||
(** Future that returns with success in the given amount of seconds *)
|
(** Future that returns with success in the given amount of seconds *)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module Infix : sig
|
module Infix : sig
|
||||||
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
|
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
|
||||||
val (>>) : 'a t -> (unit -> 'b t) -> 'b t
|
val (>>) : 'a t -> (unit -> 'b t) -> 'b t
|
||||||
end
|
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