IDK how helpful this is, but here is how we implemented a solution fo this issue. Basically we added a polling future (using the threadly library) which auto extends the permit until a settable callback future is completed.
Some of the code is from internal util libraries, but most of it should make sense. I am sure it would be more efficient to use a universal per-client watchdog.
IDK how helpful this is, but here is how we implemented a solution fo this issue. Basically we added a polling future (using the threadly library) which auto extends the permit until a settable callback future is completed.
Some of the code is from internal util libraries, but most of it should make sense. I am sure it would be more efficient to use a universal per-client watchdog.