Denis-Frunza
Denis-Frunza
I can work on this documentation if you don't mind.
what if `AbstractResource` [link](https://github.com/modern-python/that-depends/blob/main/that_depends/providers/base.py#L48) class will be context manager ``` class AbstractResource(Generic[T], ABC): """Abstract Resource Class.""" @abstractmethod def __enter__(self) -> T: pass @abstractmethod def __exit__(self, exc_type, exc_val, exc_tb) -> None:...
I believe misunderstood `Resource` class and `context resources`. I think of `Resource` class as properly initializing the resource. This could involve setting up connections, opening files etc... after the resource...
> Resources are initialized automatically or by `init_async_resources` method and finalized through container's `tear_down` method. There is no need to have context managers in providers itselves I got it, thank...