Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Oct 27, 2024
1 parent a8465ce commit c71d37b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class WeatherService:
...
```

Use sync or async factories if service requires special initialization or needs to perform cleanup.
Use factories (sync and async) if service requires special initialization or cleanup.

```python
@service
Expand All @@ -85,8 +85,7 @@ async def db_connection_factory(
yield conn
```

*Note*: If you use generator factories, call `container.{close/aclose}` on termination for the necessary
cleanup to take place.
*Note*: If you use generator factories, call `container.{close/aclose}` on termination for the necessary cleanup to take place.


**3. Use**
Expand Down

0 comments on commit c71d37b

Please sign in to comment.