Skip to main content

take_controller

Function take_controller 

Source
pub fn take_controller(block_id: &str) -> Option<Arc<dyn Controller>>
Expand description

Remove a controller from CONTROLLER_REGISTRY and hand it back, without stopping it — for the graceful close, which awaits Controller::shutdown and only then calls release_block_processes. Once removed, no new input reaches it.