Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val create :
?max_size:int ->
?max_idle_size:int ->
?check:('a -> (bool -> unit) -> unit) ->
?validate:('a -> bool Async_kernel.Deferred.t) ->
?log_src:Logs.Src.t ->
(unit -> ('a, 'e) Stdlib.result Async_kernel.Deferred.t) ->
('a -> unit Async_kernel.Deferred.t) ->
('a, 'e) t
val size : ('a, 'e) t -> int
val use :
?priority:float ->
('a -> ('b, 'e) Stdlib.result Async_kernel.Deferred.t) ->
('a, 'e) t ->
('b, 'e) Stdlib.result Async_kernel.Deferred.t
val drain : ('a, 'e) t -> unit Async_kernel.Deferred.t