MCPcopy Create free account
hub / github.com/astercloud/aster / StrictSupervisorStrategy

Function StrictSupervisorStrategy

pkg/actor/supervisor.go:276–278  ·  view source on GitHub ↗

StrictSupervisorStrategy 严格监督策略 任何失败都停止 Actor

()

Source from the content-addressed store, hash-verified

274// StrictSupervisorStrategy 严格监督策略
275// 任何失败都停止 Actor
276func StrictSupervisorStrategy() SupervisorStrategy {
277 return NewOneForOneStrategy(0, time.Second, StoppingDecider)
278}
279
280// LenientSupervisorStrategy 宽松监督策略
281// 允许更多重启

Callers

nothing calls this directly

Calls 1

NewOneForOneStrategyFunction · 0.85

Tested by

no test coverage detected