OpenGL Animation Render handler - help please

Hi Everyone,

I need to manage events when viewport opengl rendering got canceled or completed. It looks like the handlers that come with python API only work with regular renders - WORKBENCH, EEVEE, CYCLES.

I need opengl renders because they are significantly faster than the above options.

Can anyone suggest a workaround that could be implemented via python?

Basically I just need to pause the execution of my code till the renderer finishes it’s job or get’s canceled. I was considering using timers to put some delay, but I am not sure if that would be even the right way of approaching it.

Thank you so much for any suggestions!