Done with the first half of phase 2 i.e : error-handling , but will improve on it where I see necessary,
I feel i didn't handle the propagations cleanly enough and also since they don't do anything yet, the read && write fn's have no handler.
Implemented a graceful recovery(helper function) option that shuts down the driver when the shutdown phase fails, thought about just panicing to unwind the stack but research showed that's not elegant/robust for drivers. Ensuring the driver is shutdown in both successful and unsuccessful scenarios.
Done with the first half of phase 2 i.e : error-handling , but will improve on it where I see necessary, I feel i didn't handle the propagations cleanly enough and also since they don't do anything yet, the read && write fn's have no handler. Implemented a graceful recovery(helper function) option that shuts down the driver when the shutdown phase fails, thought about just panicing to unwind the stack but research showed that's not elegant/robust for drivers. Ensuring the driver is shutdown in both successful and unsuccessful scenarios.