package async_kernel
Monadic concurrency library
Install
Dune Dependency
Authors
Maintainers
Sources
async_kernel-v0.16.0.tar.gz
sha256=0eda59386235e967698834d71cb8924d7b466bc4fcbf26ae72797ad05ca6f8a9
doc/async_kernel.weak_hashtbl_async/Weak_hashtbl_async/index.html
Module Weak_hashtbl_async
Source
Like Weak_hashtbl
, but automatically collects keys with unused data, rather than requiring user code to call remove_keys_with_unused_data
.
include module type of Weak_hashtbl
Source
val sexp_of_t :
('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) t ->
Sexplib0.Sexp.t
Source
val create :
?growth_allowed:Base.bool ->
?size:Base.int ->
(module Base.Hashtbl.Key.S with type t = 'a) ->
('a, 'b) t
growth_allowed
and size
are both optionally passed on to the underlying call to Hashtbl.create
.
Source
val find_or_add :
('a, 'b) t ->
'a ->
default:(Base.unit -> 'b Heap_block.t) ->
'b Heap_block.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>