nrtv-library
v0.56.0
Published
Caches module singletons and orchestrates dependencies between them
Downloads
12
Readme
The Nrtv library allows you to richly specify the nature of a function and its dependencies, and then use that function with a high degree of control over when it is called and with what arguments.
So far, you can
Define singleton generators
Request a set of singletons be applied to a function
Have a scope which is global across generator runs, but which is private to the module, and can be reset when the module or one of its dependencies is used
In the future you may
Be able to specify whether a module is a generator or a plain function
Be able to specify whether you want a module's singleton or its function
Be able to use a module with a substitute for one of its dependencies