Function massa_pos_worker::start_selector_worker

source ·
pub fn start_selector_worker(
    selector_config: SelectorConfig,
) -> PosResult<(Box<dyn SelectorManager>, Box<dyn SelectorController>)>
Expand description

Start thread selector Launches a selector worker thread and returns a pair to interact with it.

§parameters

  • none

§Returns

A pair (selector_manager, selector_controller) where:

  • selector_manager: allows to stop the worker
  • selector_controller: allows sending requests and notifications to the worker