Documentation ¶
Overview ¶
Package ger provides OTP-like supervisors.
Index ¶
Constants ¶
View Source
const ( // ErrRestart means the task must be restarted. ErrRestart cError = iota + 1 // restart me // ErrAllCanceled means that all supervised tasks are canceled. ErrAllCanceled // all tasks are canceled // ErrStopped means that the current task is stopped. ErrStopped // task is stopped // ErrSupervisorIsNotRunning means that you trying to wait on non-running supervisor. ErrSupervisorIsNotRunning // supervisor is not running )
Variables ¶
This section is empty.
Functions ¶
func AllForOne ¶
AllForOne runs provided tasks with all-for-one strategy. IF any of the tasks fails with ErrRestart, then all tasks will be restarted.
Types ¶
Click to show internal directories.
Click to hide internal directories.