Commit graph

5 commits

Author SHA1 Message Date
7feb71666a
feat(Reactor.Dsl.Flunk): Add a special step type which always fails. (#125)
This is especially useful for switch branches which should never be reached.
2024-09-16 09:48:56 +12:00
e8ac9a1d90
feat(map): Add the ability to map over elements of a collection inside a reactor. (#123)
* feat(map): Add the ability to map over elements of a collection inside a reactor.

* improvement: throw a more helpful error when a step returns an invalid result.

* fix: automatically pass extra arguments from the map step to nested steps.

They can't be referred to directly because they may be added to the graph
at runtime, and may depend on steps which have been completed and their
results discarded because they have no dependents at that time.

* fix: spurious test failures seemingly caused by `Mimic`.
2024-07-18 21:56:46 +12:00
37b9eda48e
feat: Add telemetry middleware. (#93)
* improvement: don't incur compile-time dependencies on middleware.

* feat: Add a middleware which emits telemetry events about Reactor.
2024-02-29 09:23:51 +13:00
01fddd19b0
improvement!: Remove hooks and replace with middleware behaviour. (#90)
* improvement!: Remove hooks and replace with middleware behaviour.

* improvement(Middleware): Add `get_process_context/0` and `set_process_context/1` middleware hooks.

* improvement: Add step event callback to middleware.
2024-02-26 16:20:54 +13:00
8d9ab76660 docs: Update Reactor DSL docs. 2023-12-15 10:39:56 +13:00