@ty-ras-extras/resource-pool-fp-ts
v2.0.0
Published
Create resource pool with customizable administration, and Task-based (from `fp-ts` library) acquire/release methods.
Downloads
39
Readme
Typesafe REST API Specification Extras - Resource Pool With FP-TS
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.