Skip to main content

set_current_reactor

Function set_current_reactor 

Source
pub fn set_current_reactor(reactor: Box<dyn Reactor>)
Expand description

Set the reactor for the current thread. Used by simulation to allow libraries with static-method dependencies (like OpenRaft) to find the reactor.