package octez-libs
A package that contains multiple base libraries used by the Octez suite
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-libs.lwt-result-stdlib/Tezos_lwt_result_stdlib/Lwtreslib/Bare/Seq_s/index.html
Module Bare.Seq_s
Source
This is similar to S.t
but the suspended node is a promise.
include Seqes.Sigs.SEQMON1ALL
with type 'a mon := 'a Lwt.t
with type 'a t := 'a t
val init : int -> (int -> 'a) -> 'a t
val unfold : ('b -> ('a * 'b) option) -> 'b -> 'a t
val forever : (unit -> 'a) -> 'a t
val iterate : ('a -> 'a) -> 'a -> 'a t
val of_dispenser : (unit -> 'a option) -> 'a t
val empty : 'a t
val return : 'a -> 'a t
val repeat : 'a -> 'a t
val ints : int -> int t
return_s p
is a sequence with the value the promise p
resolves to as its single element.
cons_s p s
is the sequence containing the value the promise p
resolves to, followed by s
.
Similar to iter
but wraps the iteration in Lwt
. The steps of the iteration are started concurrently: one iteration is started as soon as the node becomes resolved. The promise iter_p f s
is resolved only once all the promises of the iteration are. At this point it is either fulfilled if all promises are, or rejected if at least one of them is.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>