Closed trowski closed 7 years ago
Why did you remove the nullability?
@kelunik The nullability seemed pointless… why would you explicitly remove the factory without setting another?
Because tests or whatever.
Testing maybe… so I'll put it back.
Closing, as project discontinued for now.
Invoking
Loop::setFactory()
removes the activeDriver
instance as a side-effect. This PR removes this side-effect and requires a newDriverFactory
instance be passed toLoop::setFactory()
(instead of being nullable).To remove the current
Driver
instance and force a new one to be created, aLoop::resetDriver()
method is added. This method cannot be invoked while the loop is running.