pub fn new() -> KompactConfig {
        KompactConfig {
            label: default_runtime_label(),
            throughput: 2,
            msg_priority: 0.5,
            threads: 1,
            timer_builder: Rc::new(|| DefaultTimer::new_timer_component()),
            scheduler_builder: Rc::new(|t| {
                ExecutorScheduler::from(crossbeam_workstealing_pool::small_pool(t))
            }),
            sc_builder: Rc::new(|sys, dead_prom, disp_prom| {
                Box::new(DefaultComponents::new(sys, dead_prom, disp_prom))
            }),
            root_logger: None,
            config_sources: Vec::new(),
        }
    }
/// Create a minimal Kompact config
///
/// The minimal config uses the default label, i.e. `"kompact-runtime-{}"` for some sequence number.
/// It sets the event/message throughput to 2, split evenly between events and messages.
/// It runs with a single thread on a [small pool](crossbeam_workstealing_pool::small_pool).
/// It uses all default components, without networking, with the default timer and default logger.
Create a minimal Kompact config
The minimal config uses the default label, i.e. `"kompact-runtime-{}"` for some sequence number.
It sets the event/message throughput to 2, split evenly between events and messages.
It runs with a single thread on a [small pool](crossbeam_workstealing_pool::small_pool).
It uses all default components, without networking, with the default timer and default logger.
Create a minimal Kompact config The minimal config uses the default label i . e . ` " kompact - runtime - {} " ` for some sequence number . It sets the event / message throughput to 2 split evenly between events and messages . It runs with a single thread on a [ small pool ] ( crossbeam_workstealing_pool :: small_pool ) . It uses all default components without networking with the default timer and default logger .
pub fn new() -> KompactConfig {
        KompactConfig {
            label: default_runtime_label(),
            throughput: 2,
            msg_priority: 0.5,
            threads: 1,
            timer_builder: Rc::new(|| DefaultTimer::new_timer_component()),
            scheduler_builder: Rc::new(|t| {
                ExecutorScheduler::from(crossbeam_workstealing_pool::small_pool(t))
            }),
            sc_builder: Rc::new(|sys, dead_prom, disp_prom| {
                Box::new(DefaultComponents::new(sys, dead_prom, disp_prom))
            }),
            root_logger: None,
            config_sources: Vec::new(),
        }
    }
pub fn new ( ) -> KompactConfig { KompactConfig { label : default_runtime_label ( ) , throughput : 2 , msg_priority : 0.5 , threads : 1 , timer_builder : Rc :: new ( | | DefaultTimer :: new_timer_component ( ) ) , scheduler_builder : Rc :: new ( | t | { ExecutorScheduler :: from ( crossbeam_workstealing_pool :: small_pool ( t ) ) } ) , sc_builder : Rc :: new ( | sys , dead_prom , disp_prom | { Box :: new ( DefaultComponents :: new ( sys , dead_prom , disp_prom ) ) } ) , root_logger : None , config_sources : Vec :: new ( ) , } }
Create a minimal Kompact config
The minimal config uses the default label, i.e.
Create a minimal Kompact config The minimal config uses the default label i . e .