package async
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Monadic concurrency library
Install
dune-project
Dependency
Authors
Maintainers
Sources
async-v0.14.0.tar.gz
sha256=74f2b7b01ce3b92289cc7a68cd3ae53885c763cedd320d27949d585e5c13dc64
md5=9f80cfb72e3defcc9fca50f67e23e93c
doc/async.lock_file_async/Lock_file_async/Flock/index.html
Module Lock_file_async.Flock
Flock has async analogues of functions in Lock_file_blocking.Flock; see there for documentation.
Additionally, here we:
- catch unix exceptions, packaging them as
Deferred.Or_error.t - implement abortable waiting versions based on polling
val lock_exn :
lock_path:string ->
[ `Somebody_else_took_it | `We_took_it of t ] Async.Deferred.tval lock :
lock_path:string ->
[ `Somebody_else_took_it | `We_took_it of t ] Async.Deferred.Or_error.tval unlock_exn : t -> unit Async.Deferred.tval unlock : t -> unit Async.Deferred.Or_error.tval wait_for_lock_exn :
?abort:unit Async.Deferred.t ->
lock_path:string ->
unit ->
t Async.Deferred.twait_for_lock_exn ?abort ~lock_path () Wait for the lock, giving up once abort becomes determined
val wait_for_lock :
?abort:unit Async.Deferred.t ->
lock_path:string ->
unit ->
t Async.Deferred.Or_error.tSee wait_for_lock_exn
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>