docs(tvix/composition): add comment about stack
Change-Id: I3888b5034c53728e2f9cfe24213f8854eb38bfe1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12005 Autosubmit: yuka <yuka@yuka.dev> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
76394daca3
commit
eea9f3d9ee
1 changed files with 3 additions and 0 deletions
|
@ -274,6 +274,9 @@ pub fn add_default_services(reg: &mut Registry) {
|
|||
}
|
||||
|
||||
pub struct CompositionContext<'a> {
|
||||
// The stack used to detect recursive instantiations and prevent deadlocks
|
||||
// The TypeId of the trait object is included to distinguish e.g. the
|
||||
// BlobService "default" and the DirectoryService "default".
|
||||
stack: Vec<(TypeId, String)>,
|
||||
composition: Option<&'a Composition>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue