package MlFront_Thunk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Describes and runs reproducible units of work called thunks
Install
dune-project
Dependency
Authors
Maintainers
Sources
MlFront.tar.gz
md5=aeb01176ff012ed278135b2f8347ee97
sha512=8bcddec2ab379ebd20cb9dedc216cd94ee0c9f5462294736c5ea12799a90bb1e16fb68c63e42a46539a58d318850186823d370682e145bed22ec40a89cf7d202
doc/MlFront_Thunk.ThunkIoDisk/MlFront_Thunk_IoDisk/ThunkIoDisk/Make/argument-1-M/index.html
Parameter Make.M
The type resolved_promise_state is the set of states a Resolved promise can be in. The set will be either type 'a in t or a reversed monadic transformation of type 'a which you need to unwrap. In other words, the resolution has no knowledge of the transformations of the monad (nor should it!).
include MlFront_Thunk.BuildConstraints.MONAD with type 'a t := 'a t
include MlFront_Thunk.BuildConstraints.FUNCTOR with type 'a t := 'a t
make_promise () is a new promise and resolver. The promise is pending.
val return : 'a -> 'a treturn x is a new promise that is already resolved with value x.
val promise_state :
'a t ->
resolved_promise_state MlFront_Thunk.BuildConstraints.universal_promise_statepromise_state p is the state of the promise
val resolve : 'a resolver -> 'a -> unitresolve r x resolves the promise p associated with r with value x, meaning that state p will become Resolved x. Requires: p is pending.
val reject : 'a resolver -> exn -> unitreject r x rejects the promise p associated with r with exception x, meaning that state p will become Rejected x. Requires: p is pending.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>