sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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) Stdlib.result Lwt.t
val return : 'a -> ('a, _) t
val fail : 'b -> (_, 'b) t
val lift : ('a, 'b) Stdlib.result -> ('a, 'b) t
catch x
behaves like return y
if x
evaluates to y
, and like fail e
if x
raises e
Lwt.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.
iter f r
is f v
if r
is a promise resolved with Ok v
, and Lwt.return_unit
otherwise.
iter_error f r
is f v
if r
is a promise resolved with Error v
, and Lwt.return_unit
otherwise.
module Infix : sig ... end
module Let_syntax : sig ... end
module Syntax : sig ... end
Deprecated
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page