@ty-ras/resource-pool-fp-ts
v0.12.0
Published
Create resource pool with customizable administration, and Task-based (from `fp-ts` library) acquire/release methods.
Downloads
3
Readme
Typesafe REST API Specification - FP-TS Based Resource Pool
This folder contains library which exposes function to create ResourcePool
s which are operating based on Task
s and TaskEither
s of fp-ts
library.
The function returns separate ResourcePoolAdministration
object, which can be used to run eviction cycle and request pool parameters.
In the future, the ResourcePoolAdministration
will be expanded to also modify the pool parameters at runtime, enabling varying resource pool configration based on e.g. certain schedule.