aboutsummaryrefslogtreecommitdiff
path: root/options.go
blob: 16c72e84f505a694e34823c71b49869aec088dfe (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 (
	ShutdownIfFail  Options = iota // Shutdown all routines if fail
	RestartIfFail                  // Restart this routine if fail
	DoNothingIfFail                // 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
)