package caqti
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Caqti_pool.MakeSource
Parameters
module System : Caqti_driver_sig.System_commonSignature
Source
val create :
?max_size:int ->
?max_idle_size:int ->
?max_use_count:int option ->
?check:('a -> (bool -> unit) -> unit) ->
?validate:('a -> bool System.future) ->
?log_src:Logs.Src.t ->
(unit -> ('a, 'e) result System.future) ->
('a -> unit System.future) ->
('a, 'e) tInternal: create alloc free is a pool of resources allocated by alloc and freed by free. This is primarily intended for implementing the connect_pool functions.
Source
val use :
?priority:float ->
('a -> ('b, 'e) result System.future) ->
('a, 'e) t ->
('b, 'e) result System.futureuse f pool calls f on a resource drawn from pool, handing back the resource to the pool when f exits.
drain pool closes all resources in pool. The pool is still usable, as new resources will be created on demand.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page