ASM.Run.EventReducer (ASM v0.9.2)

Copy Markdown View Source

Deterministic reducer from run-scoped events to result projections.

Summary

Functions

apply_event!(state, event)

@spec apply_event!(ASM.Run.State.t(), ASM.Event.t()) :: ASM.Run.State.t()

final?(state)

@spec final?(ASM.Run.State.t()) :: boolean()

to_result(state)

@spec to_result(ASM.Run.State.t()) :: ASM.Result.t()