# `Commanded.Aggregates.DefaultLifespan`
[🔗](https://github.com/commanded/commanded/blob/v1.4.12/lib/commanded/aggregates/default_lifespan.ex#L1)

The default implementation of the `Commanded.Aggregates.AggregateLifespan`
behaviour.

It will ensure that an aggregate instance process runs indefinitely once
started, unless an exception is encountered.

# `after_command`

Aggregate will run indefinitely once started.

# `after_error`

Aggregate is stopped on exception, but will run indefinitely for any non-
exception error.

# `after_event`

Aggregate will run indefinitely once started.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
