ziggybaz / noop-driver

writing a dummy no-operation driver
0 stars 0 forks source link

Error handling #3

Closed ziggybaz closed 1 month ago

ziggybaz commented 1 month ago

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.