provides synchronization, error propagation, and Context cancelation for groups of goroutines working on subtasks of a common task
Go calls the given function in a new goroutine.
The first call to return a non-nil error cancels the group; its error will be returned by Wait.
Actors are defined as a pair of functions: an execute function [...] and an interrupt function [...] Finally, invoke Run, which blocks until the first actor returns.
a primer on
call() / cast() -
handle_call() / handle_cast()
If supervisors are supposed to be processes which do nothing but make sure their children are restarted when they die, workers are processes in charge of doing actual work, and that may die while doing so. They are usually not trusted.
one for one
one for all
rest for one