You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main component is usually started by the deployer. However,the activations of all the other components are done by the weavelets.
E.g.,
// Implementation of the main component. Has references to `Component1` and `Component2`.typemainstruct {
weaver.Implements[weaver.Main]
c1 weaver.Ref[Component1]
c2 weaver.Ref[Component2]
...// Implementation of the `Component1`. Has references to `Component1` and `Component2`.typecomponent1Implstruct {
weaver.Implements[Component1]
c3 weaver.Ref[Component3]
}
The callgraph is as follows:
main ---> Component 1 ---> Component 3
|
---> Component2
The multi deployer will start component main which under the hood will run 2 weavelets that will run main. When a main weavelet starts, it will activate components that he has references to; in this case main will activate component Component1 and Component2.
Once weavelets for Component1 are started, the weavelets for Component1 will activate Component3.
I want to study the source code of Weaver. When using
weaver multi deploy
, it calls the functionstartMain
to initialize the components.However, I couldn't find the code that actually initializes the components, something like this:
I would like to know where the code that initializes the components is called.
The text was updated successfully, but these errors were encountered: