Exemple #1
0
func extendsOne(child, parent *container.Container, extendsChan map[string]chan bool) {
	// Waiting for dependencies to be extended
	<-extendsChan[parent.Name]

	// Extends the application
	child.ExtendsContainer(parent)
	close(extendsChan[child.Name])
}