It's called once per shutdown.
So, you expect the code to block until shutdown is complete. Given that, please explain why you are trying to convert it to a non-blocking function by not using delay().
It's called once per shutdown.
So, you expect the code to block until shutdown is complete. Given that, please explain why you are trying to convert it to a non-blocking function by not using delay().