package tezos-lwt-result-stdlib
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=296bb5674bc6050afe6330326fbdd0dfc2255d414bfd6b79cc7666ac6b39316d
sha512=c061cd300a9410300851158d77bf8e56ca3c568b0b1161b38305e5b2efdcd9c746d391f832fdb2826f9a1d6babce10a9b764a4b04f5df42699f7314b9863123a
doc/traced_structs/Traced_structs/Seq_es/Make/argument-1-Monad/Lwt_syntax/index.html
Module Monad.Lwt_syntax
Syntax module for Lwt. This is intended to be opened locally in functions which use Lwt for control-flow. Within the scope of this module, the code can include binding operators, leading to a let-style syntax.
See also Lwt and Lwt.Syntax
return x is an Lwt promise that is already resolved to x. return is an alias for Lwt.return.
return_unit is an Lwt promise that is already resolved to (). It is an alias for Lwt.return_unit.
return_none is an Lwt promise that is already resolved to None. It is an alias for Lwt.return_none.
return_nil is an Lwt promise that is already resolved to []. It is an alias for Lwt.return_nil.
return_true is an Lwt promise that is already resolved to true. It is an alias for Lwt.return_true.
return_false is an Lwt promise that is already resolved to false. It is an alias for Lwt.return_false.
return_some x is an Lwt promise that is already resolved to Some x. return_some is an alias for Lwt.return_some.
return_ok x is an Lwt promise that is already resolved to Ok x. return_ok is an alias for Lwt.return_ok.
return_error x is an Lwt promise that is already resolved to Error x. return_error is an alias for Lwt.return_error.
let* is a binding operator alias for Lwt.bind and Lwt.(>>=).
and* is a binding operator alias for Lwt.both and Lwt.(<&>).
let+ is a binding operator alias for Lwt.map and Lwt.(>|=).
and+ is a binding operator alias for Lwt.both and Lwt.(<&>).
join is the joining of concurrent unit values (it is Lwt.join).
all is the joining of concurrent non-unit values (it is Lwt.all).