chickadee » poule » :

(: poule-create (('a -> 'b) fixnum #!optional fixnum -> poule))procedure

(poule-create fn max-workers idle-timeout) returns a poule that manages up to max-workers worker processes that can execute the function fn. It is an error if max-workers is not a positive number. Workers are created on-demand and are kept in a wait state until a job is submitted to the poule. After idle-timeout (default: 15) seconds without receiving any work to do, a worker quits.