func (b *collectBehavior) Recover(r interface{}) error { b.recoverings++ if b.recoverings > 5 { return cells.NewCannotRecoverError(b.ctx.ID(), r) } return nil }
// Recover from an error. func (b *fsmBehavior) Recover(err interface{}) error { b.done = true b.err = cells.NewCannotRecoverError(b.ctx.ID(), err) return nil }