Weak_hashtbl_asyncSourceLike 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_hashtblval sexp_of_t :
('a -> Sexplib0.Sexp.t) ->
('b -> Sexplib0.Sexp.t) ->
('a, 'b) t ->
Sexplib0.Sexp.tval create :
?growth_allowed:Base.bool ->
?size:Base.int ->
(module Base.Hashtbl.Key.S with type t = 'a) ->
('a, 'b) tgrowth_allowed and size are both optionally passed on to the underlying call to Hashtbl.create.
val find_or_add :
('a, 'b) t ->
'a ->
default:(Base.unit -> 'b Heap_block.t) ->
'b Heap_block.t