-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poision and Stop will now use Context mechanics in favor of a WaitGroup. #175
base: master
Are you sure you want to change the base?
Conversation
// e.SendLocal(pid, pill, nil) | ||
// return _wg | ||
// } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need to keep this around?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good improvement. The use of waitgroups was a bit "clever" . This will lower the barrier to entry.
} | ||
|
||
func (p *process) PID() *PID { return p.pid } | ||
func (p *process) Send(_ *PID, msg any, sender *PID) { | ||
p.inbox.Send(Envelope{Msg: msg, Sender: sender}) | ||
} | ||
func (p *process) Shutdown(wg *sync.WaitGroup) { p.cleanup(wg) } | ||
func (p *process) Shutdown() { | ||
// p.cleanup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to call cleanup
here
No description provided.