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