Await_kernel.Or_canceledSourceResult of a cancellable operation that is either Completed _ or Canceled.
The type for the result of a cancellable operation.
include sig ... endval sexp_of_t__stack :
('a : value_or_null). ('a @ local -> Sexplib0.Sexp.t @ local) ->
'a t @ local ->
Sexplib0.Sexp.t @ localval t_sexp_grammar :
('a : value_or_null). 'a Sexplib0.Sexp_grammar.t ->
'a t Sexplib0.Sexp_grammar.t @@ portableval hash_fold_t :
('a : value_or_null). (Ppx_hash_lib.Std.Hash.state ->
'a ->
Ppx_hash_lib.Std.Hash.state) ->
Ppx_hash_lib.Std.Hash.state ->
'a t ->
Ppx_hash_lib.Std.Hash.statecompleted_exn t is a if t is Completed a, otherwise it raises
never_completed t can be used for an Or_canceled.t computation which either loops forever or is canceled.
include Base.Monad.S__local with type 'a t := 'a tTransforms the contents of a t.
Sequences computations. bind t ~f computes f v for value(s) v in t. Well-behaved monads satisfy these "laws" (where ( >>= ) is the infix bind operator):
map t ~f is equivalent to bind t ~f:(fun x -> return (f x))return x >>= f is equivalent to f xt >>= return is equivalent to t(t >>= f) >>= g is equivalent to t >>= fun x -> f x >>= gCombines nested t into just one layer. Equivalent to bind t ~f:Fn.id.
Ignores contained values of t. Equivalent to map t ~f:ignore.
Combines a list of t whose contents are unimportant.