Skip to content

Commit

Permalink
Update best_practices.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vladopajic authored Feb 9, 2024
1 parent 2aa18e7 commit b18ff4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/best_practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func NewFooActor() *fooActor {
return &fooActor{
mbx: mbx,
Actor: actor.Combine(mbx, a1, a2).Build() // <------- combine all actors to single actor and initialize embeded actor of fooActor struct.
} // when calling fooActor.Start() it will start all actors at once.
Actor: actor.Combine(mbx, a1, a2).Build() // combine all actors to single actor and initialize embeded actor of fooActor struct.
} // when calling fooActor.Start() it will start all actors at once.
}
func (f *fooActor) OnMessage(ctx context.Context, msg any) error {
Expand All @@ -86,4 +86,4 @@ func (f *fooActor) OnMessage(ctx context.Context, msg any) error {

---

This page is not yet complete.
This page is not yet complete.

0 comments on commit b18ff4a

Please sign in to comment.