package fiber

  1. Overview
  2. Docs
val (>>>) : unit t -> 'a t -> 'a t

>>> is a sequencing operator. a >>> b is the fiber that first executes a and then b.

val (>>=) : 'a t -> ('a -> 'b t) -> 'b t

>>= is similar to >>> except that the result of the first fiber is used to create the second one.

val (>>|) : 'a t -> ('a -> 'b) -> 'b t

t >>| f is the same as t >>= fun x -> return (f x) but slightly more efficient.

val let* : 'a t -> ('a -> 'b t) -> 'b t
val let+ : 'a t -> ('a -> 'b) -> 'b t
val and* : 'a t -> 'b t -> ('a * 'b) t

Similar to fork_and_join

val and+ : 'a t -> 'b t -> ('a * 'b) t
OCaml

Innovation. Community. Security.