Version 1.3.0
This is a preliminary version of the documentation. Help us to improve it by filling tickets. We are looking for native english speakers to proof read the documentation. Contact us!
module Lwt_pool:Creating pools (for example pools of connections to a database).sig..end
type 'a t val create : int ->
?check:('a -> (bool -> unit) -> unit) -> (unit -> 'a Lwt.t) -> 'a tcreate n f creates a new pool with at most n members. f is the function to use to create a new pool member.val use : 'a t -> ('a -> 'b Lwt.t) -> 'b Lwt.tuse p f takes one free member of the pool p and gives it to the function f.