package lwt
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Promises and event-driven I/O
Install
dune-project
Dependency
Authors
Maintainers
Sources
5.5.0.tar.gz
md5=94272fac89c5bf21a89c102b8a8f35a5
sha512=8951b94555e930634375816d71815b9d85daad6ffb7dab24864661504d11be26575ab0b237196c54693efa372a9b69cdc1d5068a20a250dc0bbb4a3c03c5fda1
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.tval return : 'a -> ('a, _) tval fail : 'b -> (_, 'b) tval lift : ('a, 'b) Result.result -> ('a, 'b) tcatch 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) tLwt.both p_1 p_2 returns a promise that is pending until both promises p_1 and p_2 become resolved. If only p_1 is Error e, the promise is resolved with Error e, If only p_2 is Error e, the promise is resolved with Error e, If both p_1 and p_2 resolve with Error _, the promise is resolved with the error that occurred first.
module Infix : sig ... endmodule Let_syntax : sig ... endmodule Syntax : sig ... end sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>