Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/recipes/shared-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ The container closes after `stream.stop()` returns, so messages still in flight
from an open container. With the default flag, modern-di-fastapi would close the container inside
your lifespan, before `stream.stop()` runs.

`stream.start()` and `stream.stop()` do not run a `FastStream(lifespan=...)`, so put that setup and
teardown in the FastAPI lifespan.

## Pitfalls

- Set the flag on both integrations. One left at the default still closes the root when its app
Expand Down
Loading