aboutsummaryrefslogtreecommitdiff
path: root/options.go
blob: be910680f49625c1a52a29f9d7db7408f5229afc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package rutina

// Options sets custom run policies
type Options int

const (
	ShutdownIfError  Options = iota // Shutdown all routines if fail
	RestartIfError                  // Restart this routine if fail
	DoNothingIfError                // Do nothing on fail
	ShutdownIfDone                  // Shutdown all routines if this routine done without errors
	RestartIfDone                   // Restart if this routine done without errors
	DoNothingIfDone                 // Do nothing if this routine done without errors
)