package async_kernel
Monadic concurrency library
Install
Dune Dependency
Authors
Maintainers
Sources
async_kernel-v0.16.0.tar.gz
sha256=0eda59386235e967698834d71cb8924d7b466bc4fcbf26ae72797ad05ca6f8a9
doc/async_kernel.laziness_preserving_deferred/Laziness_preserving_deferred/index.html
Module Laziness_preserving_deferred
Source
Laziness_preserving_deferred
offers a monad for working with lazy deferreds that has similar semantics to the Deferred
monad. In the regular Lazy_deferred
monad, each map/bind
introduces a new lazy computation, and nothing runs unless explicitly forced. By contrast, this monad lets you build up a tree of computations that can be "weakly run," meaning that it will run until it encounters an unforced lazy deferred, at which point it will wait for that lazy deferred to be forced before continuing.
include Core.Monad.S with type 'a t := 'a t
module Monad_infix : sig ... end
val return : 'a -> 'a t
module Let_syntax : sig ... end
Begin computing 'a t
, forcing lazy deferreds as they are encountered.
Begin computing 'a t
, waiting on lazy deferreds as they are encountered.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>