(a review)
Â
Â
Â
Â
Â
Â
Â
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.
Package run is somewhat similar to package errgroup, except it doesn't require actor goroutines to understand context semantics.
a primer on
actors/gen_server -
call() / cast() -
handle_call() / handle_cast()
goroutines -
buffered/unbuffered channels
{
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