4 ms·
That does help. Network stuff is a usecase I could see. It seems like with a restart system you could do something like this, in a generic reusable library way
by paddy_m 2y ago
That does help. Network stuff is a usecase I could see.
It seems like with a restart system you could do something like this, in a generic reusable library way, correct me if I'm wrong. On network failure, register a callback with some OS level network activity watcher, once the network has resumed working, continue execution as normal.
- gavinhoward 2y agoYou could do that, except that you would register the handler before the network code executes. Then, on failure, the network code would run the handler that waits until activity resumes, then restarts.