package async_kernel
Monadic concurrency library
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=01ced973dbc70535f692f38bed524ae82dba17e26e58791b2fbf0d647b160d2e
doc/async_kernel.eager_deferred/Eager_deferred/Use/index.html
Module Eager_deferred.Use
Source
Intended usage is to open Eager_deferred.Use
to shadow operations from the non-eager world and rebind them to their eager counterparts.
include Core.Monad.Infix with type 'a t := 'a Async_kernel.Deferred.t
include module type of Deferred.Let_syntax
t >>= f
returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t
to yield a value v
, and then runs the computation returned by f v
.
t >>| f
is t >>= (fun a -> return (f a))
.
Source
val (>>=?) :
('a, 'e) Core.Result.t Async_kernel.Deferred.t ->
('a -> ('b, 'e) Core.Result.t Async_kernel.Deferred.t) ->
('b, 'e) Core.Result.t Async_kernel.Deferred.t
Source
val (>>|?) :
('a, 'e) Core.Result.t Async_kernel.Deferred.t ->
('a -> 'b) ->
('b, 'e) Core.Result.t Async_kernel.Deferred.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>