Skip to main content

Module strategy

Module strategy 

Source
Expand description

§Multi Strategy

Runs multiple sub-strategies concurrently. Each sub-strategy manages its own event subscription and internal timers via the Strategy::run method.

MultiStrategy is a pure combinator: it accepts any Box<dyn Strategy + Send> — including strategies defined outside this crate — and runs them all concurrently. Sub-strategies are fully isolated: a failure in one is logged and does not affect the others.

Structs§

MultiStrategy
Runs a group of sub-strategies concurrently, each in its own async task.

Traits§

Strategy
A strategy that runs until cancelled or a fatal error occurs.