SystemFactory

Type Alias SystemFactory 

Source
pub type SystemFactory = Arc<dyn Fn() -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

A factory that can create system futures. Can be called multiple times (for Fixed schedules). Uses Arc for zero-overhead sharing: dereference is same cost as Box, clone only on restart.

Aliased Typeยง

pub struct SystemFactory { /* private fields */ }