Use a proper state to update fun instead of a bool
Use a proper state to update fun instead of a bool

This make the code clearer and also added a callback in case a reload would fail and also added test to make sure this happens.

emoon/dynamic_reload