Optional ReadonlycapacityMaximum number of resources for this pool
Optional ReadonlycapacityMaximum number of users per resource. Defaults to 1
Optional ReadonlydebugIf true, additional logging will trace activity of pool. Default: false
Optional ReadonlyfreeIf specified, this function will be called when a resource is disposed
Optional ReadonlyfullWhat to do if pool is full and a new resource allocation is requested.
Default is error, throwing an error when pool is full.
Optional ReadonlygenerateIf specified, this function will generate new resources as needed.
Optional ReadonlyresourcesIf above 0, resources with no users will be automatically removed after this interval. Default: disabled
Optional ReadonlyuserIf above 0, users will be removed if there is no activity after this interval.
Activity is marked whenever use us called with that user key.
Default: disabled
Pool options