package octez-libs
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
    
    
  sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
    
    
  doc/octez-libs.lwt-result-stdlib/Tezos_lwt_result_stdlib/Lwtreslib/Bare/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
val return : 'a -> 'a Lwt.treturn x is an Lwt promise that is already resolved to x. return is an alias for Lwt.return.
val return_unit : unit Lwt.treturn_unit is an Lwt promise that is already resolved to (). It is an alias for Lwt.return_unit.
val return_none : _ option Lwt.treturn_none is an Lwt promise that is already resolved to None. It is an alias for Lwt.return_none.
val return_nil : _ list Lwt.treturn_nil is an Lwt promise that is already resolved to []. It is an alias for Lwt.return_nil.
val return_true : bool Lwt.treturn_true is an Lwt promise that is already resolved to true. It is an alias for Lwt.return_true.
val return_false : bool Lwt.treturn_false is an Lwt promise that is already resolved to false. It is an alias for Lwt.return_false.
val return_some : 'a -> 'a option Lwt.treturn_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.
The following return_ok_* functions are intended to be used within the scope of Lwt_syntax when returning results compatible with Lwt_result_syntax.
return_ok_unit is an Lwt promise that is already resolved to Ok ().
return_ok_true is an Lwt promise that is already resolved to Ok true.
return_ok_false is an Lwt promise that is already resolved to Ok false.
return_ok_none is an Lwt promise that is already resolved to Ok None.
return_ok_nil is an Lwt promise that is already resolved to Ok [].
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).