package async_kernel
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Monadic concurrency library
Install
dune-project
Dependency
Authors
Maintainers
Sources
async_kernel-v0.12.0.tar.gz
sha256=27b446895ca5251191159d173e787a53938b4a529d7ef7e3c490fb96740e0f6f
md5=24d41c607761ceece3df15bf9b061bcf
doc/async_kernel.limiter_async/Limiter_async/Sequencer/index.html
Module Limiter_async.Sequencer
A sequencer is a throttle that is specialized to only allow one job at a time and to, by default, not continue on error.
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.ttype _ u = tval create :
?continue_on_error:bool ->
?burst_size:int ->
?sustained_rate_per_sec:float ->
unit ->
tval enqueue_exn : t -> ?allow_immediate_run:bool -> ('a -> unit) -> 'a -> unitval enqueue' :
t ->
('a -> 'b Async_kernel.Deferred.t) ->
'a ->
'b Outcome.t Async_kernel.Deferred.tval num_jobs_waiting_to_start : t -> intinclude Common with type 'a t := 'a u
val kill : _ u -> unitkills t, which aborts all enqueued jobs that haven't started and all jobs enqueued in the future. If t has already been killed, then calling kill t has no effect. Note that kill does not affect currently running jobs in any way.
val is_dead : _ u -> boolis_dead t returns true if t was killed, either by kill or by an unhandled exception in a job.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>