package lwt
Promises and event-driven I/O
Install
Dune Dependency
Authors
Maintainers
Sources
4.5.0.tar.gz
sha256=e07d845cd8b105802d975e9d09deee09dcfadbb66d2455d81f09608e42786186
md5=1b2fa7df39a70be1925acdabb8b3f8aa
doc/lwt/Lwt_result/index.html
Module Lwt_result
Explicit error handling
This module provides helpers for values of type ('a, 'b) result Lwt.t
. The module is experimental and may change in the future.
type (+'a, +'b) t = ('a, 'b) Result.result Lwt.t
val return : 'a -> ('a, _) t
val fail : 'b -> (_, 'b) t
val lift : ('a, 'b) Result.result -> ('a, 'b) t
catch x
behaves like return y
if x
evaluates to y
, and like fail e
if x
raises e
val bind_result : ('a, 'e) t -> ('a -> ('b, 'e) Result.result) -> ('b, 'e) t
module Infix : sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>