@hackage resource-registry0.2.1.0
Track allocated resources
Categories
License
Apache-2.0
Maintainer
operations@iohk.io
Links
Versions
Installation
Dependencies (6)
- base >=4.14 && <4.23
- bimap ^>=0.5
- containers >=0.6.7 && <0.9
- io-classes ^>=1.8 || ^>=1.9
- mtl ^>=2.3
- nothunks ^>=0.2 || ^>=0.3 Show all…
Dependents (4)
@cardano/ouroboros-consensus-diffusion, @cardano/ouroboros-consensus-cardano, @cardano/ouroboros-consensus, @cardano/cardano-node
resource-registry
In some cases, the lifetime of a resource is not suitable for CPS and hence
can't use bracket-like functions, for example, the resource might be tracked
inside some other data structure. In this case, the container data structure can
be allocated in a resource registry together with the resources so that an
exception will deallocate the resources in a proper order.